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.

Sheet<br />

Page box<br />

A<br />

D<br />

Page content<br />

B<br />

C<br />

A: margin−top<br />

B: margin−right<br />

C: margin−bottom<br />

D: margin−left<br />

The computed value of box margins at the top or bottom of the page area is ’0’.<br />

The page context [p. 176] has no notion of fonts, so ’em’ and ’ex’ units are not<br />

allowed. Percentage values on the margin properties are relative to the dimensions<br />

of the page box [p. 176] ; for left and right margins, they refer to page box<br />

width while for top and bottom margins, they refer to page box height. All other<br />

units associated with the respective <strong>CSS2</strong> properties are allowed.<br />

Due to negative margin values (either on the page box or on elements) or<br />

absolute positioning [p. 113] content may end up outside the page box, but this<br />

content may be "cut" -- by the user agent, the printer, or ultimately, the paper<br />

cutter.<br />

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

’size’<br />

Value: {1,2} | auto | portrait | landscape | inherit<br />

Initial: auto<br />

Applies to: the page context<br />

Inherited: N/A<br />

Percentages: N/A<br />

Media: visual, paged<br />

This property specifies the size and orientation of a page box.<br />

The size of a page box may either be "absolute" (fixed size) or "relative" (scalable,<br />

i.e., fitting available sheet sizes). Relative page boxes allow user agents to<br />

scale a document and make optimal use of the target size.<br />

Three values for the ’size’ property create a relative page box:<br />

177

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

Saved successfully!

Ooh no, something went wrong!