Reputation: 49114
I'm creating an epub file and am trying to understand an example css for an ebook:
@page {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
What's the @page
rule? I can't find it in my books or Google.
Upvotes: 4
Views: 7014
Reputation: 27591
A page box is a rectangular region that contains two areas:
We specify the size, margins, etc. of a page box within a @page rule.
The size of the page box is set with the size property. The size of the page area are the size of the page box minus the margin area.
Upvotes: 5
Reputation: 10060
@page describes how your document should behave on page-based media (like print). This should clear it up: http://www.w3.org/TR/CSS21/page.html
Upvotes: 6