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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

0.28 mm<br />

1.4 mm<br />

viewer<br />

28 inch<br />

71 cm<br />

140 inch<br />

3.5 m<br />

In the second image, an area of 1px by 1px is covered by a single dot in a<br />

low-resolution device (a computer screen), while the same area is covered by 16<br />

dots in a higher resolution device (such as a 400 dpi laser printer).<br />

laserprint<br />

monitor screen<br />

1px<br />

1px<br />

= 1 device pixel<br />

Child elements do not inherit the relative values specified for their parent; they<br />

(generally) inherit the computed values [p. 70] .<br />

Example(s):<br />

In the following rules, the computed ’text-indent’ value of H1 elements will be<br />

36pt, not 45pt, if H1 is a child of the BODY element.<br />

BODY {<br />

font-size: 12pt;<br />

text-indent: 3em; /* i.e., 36pt */<br />

}<br />

H1 { font-size: 15pt }<br />

Absolute length units are only useful when the physical properties of the output<br />

medium are known. The absolute units are:<br />

in: inches -- 1 inch is equal to 2.54 centimeters.<br />

cm: centimeters<br />

45

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

Saved successfully!

Ooh no, something went wrong!