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.
@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
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.
Per this link to w3c schools
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With