Paged Media Properties


Normally, a web page appears as a continuous page. CSS2 introduces the concept of paged media, which is designed to split a document into one or more discrete pages for display on paper, transparencies, computer screens, and so on. Page size, margins, page breaks, widows, and orphans can all be set with the following properties and values. Unfortunately, these properties aren't supported by any current browsers.

marks

Usage

Specifies whether cross marks, crop marks, or both should be rendered just outside the page box. Used in high-quality printing.

CSS2 Values

crop | cross | none | inherit

Initial

none

Applies to

Page context.

Inherited

N/A.


orphans

Usage

Specifies the minimum number of lines of a paragraph that must be left at the bottom of a page.

CSS2 Values

<integer> | inherit

Initial

2

Applies to

Block-level elements.

Inherited

Yes.


page

Usage

Used to specify a particular type of page where an element should be displayed.

CSS2 Values

<identifier> :left | :right | auto

Initial

auto

Applies to

Block-level elements.

Inherited

Yes.

Notes

By adding :left or :right, the element can be forced to fall on a left or right page.


page-break-after, page-break-before

Usage

Specifies page breaks before the following element or after the preceding element.

CSS2 Values

auto | always | avoid | left | right | inherit

Initial

auto

Applies to

Block-level elements.

Inherited

No.


page-break-inside

Usage

Forces a page break inside the parent element.

CSS2 Values

avoid | auto | inherit

Initial

auto

Applies to

Block-level elements.

Inherited

Yes.


size

Usage

Specifies the size and orientation of a page box.

CSS2 Values

<length> | auto | portrait | landscape | inherit

Initial

auto

Applies to

Page context.

Inherited

N/A.


widows

Usage

Specifies the minimum number of lines of a paragraph that must be left at the top of a page.

CSS2 Values

<integer> | inherit

Initial

2

Applies to

Block-level elements.

Inherited

Yes.





Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day
Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day (5th Edition)
ISBN: 0672328860
EAN: 2147483647
Year: 2007
Pages: 305

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net