22.12.2013 Views

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.3.4 URL + URN = URI . . . . . . . . . . 46 .<br />

4.3.5 Counters . . . . . . . . . . . . 47 .<br />

4.3.6 Colors . . . . . . . . . . . . 48 .<br />

4.3.7 Angles . . . . . . . . . . . . 49 .<br />

4.3.8 Times . . . . . . . . . . . . . 49 .<br />

4.3.9 Frequencies . . . . . . . . . . . 50 .<br />

4.3.10 Strings . . . . . . . . . . . . 50 .<br />

4.4 CSS document representation . . . . . . . . 50 .<br />

4.4.1 Referring to characters not represented in a character encoding<br />

. . . . . . . . . . . . . . . 51 .<br />

5 Selectors . . . . . . . . . . . . . . . 53 .<br />

5.1 Pattern matching . . . . . . . . . . . 53 .<br />

5.2 Selector syntax . . . . . . . . . . . . 55 .<br />

5.2.1 Grouping . . . . . . . . . . . . 55 .<br />

5.3 Universal selector . . . . . . . . . . . 55 .<br />

5.4 Type selectors . . . . . . . . . . . . 56 .<br />

5.5 Descendant selectors . . . . . . . . . . 56 .<br />

5.6 Child selectors . . . . . . . . . . . . 57 .<br />

5.7 Adjacent sibling selectors . . . . . . . . . 57 .<br />

5.8 Attribute selectors . . . . . . . . . . . 57 .<br />

5.8.1 Matching attributes and attribute values . . . . 58 .<br />

5.8.2 Default attribute values in DTDs . . . . . . 59 .<br />

5.8.3 Class selectors . . . . . . . . . . 59 .<br />

5.9 ID selectors . . . . . . . . . . . . . 60 .<br />

5.10 Pseudo-elements and pseudo-classes . . . . . . 61 .<br />

5.11 Pseudo-classes . . . . . . . . . . . 62 .<br />

5.11.1 :first-child pseudo-class . . . . . . . . 62 .<br />

5.11.2 The link pseudo-classes: :link and :visited . . . . 63 .<br />

5.11.3 The dynamic pseudo-classes: :hover, :active, and :focus 63 .<br />

5.11.4 The language pseudo-class: :lang . . . . . 65 .<br />

5.12 Pseudo-elements . . . . . . . . . . . 65 .<br />

5.12.1 The :first-line pseudo-element . . . . . . 65 .<br />

5.12.2 The :first-letter pseudo-element . . . . . . 66 .<br />

5.12.3 The :before and :after pseudo-elements . . . . 68 .<br />

6 Assigning property values, <strong>Cascading</strong>, and Inheritance . . . . 69 .<br />

6.1 Specified, computed, and actual values . . . . . . 69 .<br />

6.1.1 Specified values . . . . . . . . . . 69 .<br />

6.1.2 Computed values . . . . . . . . . . 70 .<br />

6.1.3 Actual values . . . . . . . . . . . 70 .<br />

6.2 Inheritance . . . . . . . . . . . . . 70 .<br />

6.2.1 The ’inherit’ value . . . . . . . . . . 71 .<br />

6.3 The @import rule . . . . . . . . . . . 71 .<br />

6.4 The cascade . . . . . . . . . . . . 72 .<br />

6.4.1 <strong>Cascading</strong> order . . . . . . . . . . 73 .<br />

6.4.2 !important rules . . . . . . . . . . 73 .<br />

6.4.3 Calculating a selector’s specificity . . . . . . 74 .<br />

6.4.4 Precedence of non-CSS presentational hints . . . 74 .<br />

5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!