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.

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

Declarations in the page context [p. 176] obey the cascade [p. 69] just like<br />

normal <strong>CSS2</strong> declarations.<br />

Example(s):<br />

Consider the following example:<br />

@page {<br />

margin-left: 3cm;<br />

}<br />

@page :left {<br />

margin-left: 4cm;<br />

}<br />

Due to the higher specificity [p. 73] of the pseudo-class selector, the left margin<br />

on left pages will be ’4cm’ and all other pages (i.e., the right pages) will have a<br />

left margin of ’3cm’.<br />

185

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

Saved successfully!

Ooh no, something went wrong!