-
Book Overview & Buying
-
Table Of Contents
Web Developer's Reference Guide
By :
The page box is a square/rectangular area built out of two parts: the page area and the margin area.
The page area is where the content sits and all elements are laid out. The margin area sits around the page area and is transparent. If we add a background color to the page area, it will cover the page area and the margin area.
The size of the page box cannot be modified. But if we plan to modify some of the page box properties, we need to include them in an @page rule.
Let's check it out.
The bleed CSS property is also called the CSS at-rule descriptor. It defines how much a page should "overflow" or bleed outside the page box. This property only works if marks have been enabled using the marks property, which we'll see next.
The bleed property only supports a length value: px, em, in, mm, cm, vw, and so on.
CSS:
@page {
bleed: 5mm;
}The marks CSS property, also called a CSS at-rule descriptor, defines the types of mark that should be rendered and printed outside...
Change the font size
Change margin width
Change background colour