Chapter 6. CSS Properties – Part 3

Now that we're done with Part 2 of the CSS properties, let's end strongly with Part 3.

Let's do this.

Page box

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.

bleed

The bleed CSS property is also called the CSS at-rule descriptor. It defines how much a page should "overflow" or ...

Get Web Developer's Reference Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.