OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Success of controling paged media with CSS???
This page's ID:
10938
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
It's really a confusion of terms that isn't defined fully in the CSS 2 Specification. @page does not mean "a piece of paper from a printer". The only place I find a real definition of @page is in the W3C CSS Mobile Profile 1.0, [url=http://www.w3.org/TR/css-mobile#section-selectors]http://www.w3.org/TR/css-mobile#section-selectors[/url] [quote]@page "Defines a (optionally named) page formatting context"[/quote] So what? Well there are [b]five[/b] paged media types: embossed, handheld, print, projection and TV. Think: media type = device. @page rules by themselves to not tell the browser which of the five paged media types (devices) the rule applies to. It merely tells the browser to use the page box model instead of the usual box model and gives it some properties of that page box. In other words, a page formatting context. It needs to be tied to a media type (device), in this case, media="print" in order for the browser to make sense of it. Therefore, you need a separate style block for the CSS that apply specifically to printed media, and your @page rule goes within it. Or you can use Slime's method above within a style block for another media type (or within a media="all" block) to say, "Oh, by the way, use this rule instead when you print." [img]http://www.brucew.com/ozone/b-ozone-sig.gif[/img]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »