Đang chuẩn bị liên kết để tải về tài liệu:
Speaking in styles- P3

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Speaking in styles- P3: I want you to think of a shape. It can be any shape you want a circle, a square, a triangle, an eight-pointed star, or an ameboid glob-but keep it to a single continuous shape. I want you to hold that shape in your mind, or, if you need to, scratch it out on a piece of paper (or, if you are really far gone) on a computer. | CSS GRAMMAR SYNTAX Styles In Context continued Styles for Siblings If elements are next to each other not nested inside of each other they are called adjacent or sibling selectors. You can set a style based on an element s sibling. For example let s say you want any citation that s next to emphasized text to be red If a citation is next to emphasized text its text color is red. em cite color red If we applied this to the following HTML em Quotes em from cite Ihrough theLooking-Glass cite The words Thorough the Looking-Glass would be red because the em and cite tags are next to each other despite the intervening text . However with the following HTML em Quotes em strong from strong cite Ihrough the Looking-Glass cite The words Through the Looking-Glass would not get the red styling because the strong tag is in the way. Please purchase PDF Split-Merge on www.verypdf.com to remove this water If a citation is directly next to emphasized text its color is red. em cite color red Plus Sign J em Quotes em from cite Through the Looking-Glass cite em Quotes em from cite Through the Looking- Glass cite em cite color red se purchase PDF Split-Merge on www.verypdf.com to remove this watermark. CSS GRAMMAR SYNTAX Styles for Special Cases Although primarily intended to add styles to particular elements created using HTML tags there are several cases where we can use CSS to style content on the page that is not specifically set off by HTML tags or to create a dynamic style in reaction to something that your Web site visitor is doing on the screen. These are known as pseudo-elements and pseudo-classes Link pseudo-classes Used to style hypertext links. Although primarily associated with color you can actually use any CSS property to set off links and provide user feedback during interaction. Dynamic pseudo-classes Used to style any element on the screen depending on how the user is interacting with it. Pseudo-elements Used to style the first letter or first line in a block of text.