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.

12.4.2 Inserting quotes with the ’content’ property . . . 159 .<br />

12.5 Automatic counters and numbering . . . . . . . 160 .<br />

12.5.1 Nested counters and scope . . . . . . . 162 .<br />

12.5.2 Counter styles . . . . . . . . . . 163 .<br />

12.5.3 Counters in elements with ’display: none’ . . . . 163 .<br />

12.6 Markers and lists . . . . . . . . . . . 163 .<br />

12.6.1 Markers: the ’marker-offset’ property . . . . . 164 .<br />

12.6.2 Lists: the ’list-style-type’, ’list-style-image’, ’list-style-position’,<br />

and ’list-style’ properties . . . . . . . . . 168 .<br />

13 Paged <strong>media</strong> . . . . . . . . . . . . . . 175 .<br />

13.1 Introduction to paged <strong>media</strong> . . . . . . . . 175 .<br />

13.2 Page boxes: the @page rule . . . . . . . . 176 .<br />

13.2.1 Page margins . . . . . . . . . . 176 .<br />

13.2.2 Page size: the ’size’ property . . . . . . . 177 .<br />

Rendering page boxes that do not fit a target sheet . . 178 .<br />

Positioning the page box on the sheet . . . . . 178 .<br />

13.2.3 Crop marks: the ’marks’ property . . . . . . 179 .<br />

13.2.4 Left, right, and first pages . . . . . . . 179 .<br />

13.2.5 Content outside the page box . . . . . . . 180 .<br />

13.3 Page breaks . . . . . . . . . . . . 180 .<br />

13.3.1 Break before/after elements: ’page-break-before’,<br />

’page-break-after’, ’page-break-inside’ . . . . . . 181 .<br />

13.3.2 Using named pages: ’page’ . . . . . . . 182 .<br />

13.3.3 Breaks inside elements: ’orphans’, ’widows’ . . . 182 .<br />

13.3.4 Allowed page breaks . . . . . . . . . 183 .<br />

13.3.5 Forced page breaks . . . . . . . . . 184 .<br />

13.3.6 "Best" page breaks . . . . . . . . . 184 .<br />

13.4 <strong>Cascading</strong> in the page context . . . . . . . . 185 .<br />

14 Colors and Backgrounds . . . . . . . . . . . 187 .<br />

14.1 Foreground color: the ’color’ property . . . . . . 187 .<br />

14.2 The background . . . . . . . . . . . 187 .<br />

14.2.1 Background properties: ’background-color’, ’background-image’,<br />

’background-repeat’, ’background-attachment’,<br />

’background-position’, and ’background’ . . . . . . 188 .<br />

14.3 Gamma correction . . . . . . . . . . . 193 .<br />

15 Fonts . . . . . . . . . . . . . . . . 195 .<br />

15.1 Introduction . . . . . . . . . . . . 196 .<br />

15.2 Font specification . . . . . . . . . . . 197 .<br />

15.2.1 Font specification properties . . . . . . . 198 .<br />

15.2.2 Font family: the ’font-family’ property . . . . . 199 .<br />

15.2.3 Font styling: the ’font-style’, ’font-variant’, ’font-weight’ and<br />

’font-stretch’ properties . . . . . . . . . . 200 .<br />

15.2.4 Font size: the ’font-size’ and ’font-size-adjust’ properties 203 .<br />

15.2.5 Shorthand font property: the ’font’ property . . . 207 .<br />

15.2.6 Generic font families . . . . . . . . . 209 .<br />

serif . . . . . . . . . . . . . 210 .<br />

sans-serif . . . . . . . . . . . . 210 .<br />

8

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

Saved successfully!

Ooh no, something went wrong!