Page Properties & Table Properties

Page Properties

PropertyDescriptionPossible ValuesExamples
marksDeclares the type of marks to display outside the page box.
crop
cross
@page { marks:crop; }
orphansDeclares the minimum number of lines of a paragraph that must be left at the bottom of a page.Integers
@page { orphans:2; }
pageDeclares the type of page where an element should be displayed.IndentifiersMore Information
page-break-afterDeclares a page break.
auto
always
avoid
left
right
More Information
page-break-beforeDeclares a page break.
auto
always
avoid
left
right
More Information
page-break-insideDeclares a page break.
auto
avoid
More Information
sizeDeclares the size and orientation of a page box.Lengths, and the following predefined values:

auto
landscape
potrait

More Information
widowsDeclares the minimum number of lines of a paragraph that must be left at the top of a page.Integers
@page { widows:2; }

Table Properties

PropertyDescriptionPossible ValuesExamples
border-collapseDeclares the way borders are displayed.
collapse
separate
table { border-collapse:collapse; }

table { border-collapse:separate; }

border-spacingDeclares the distance separating borders (if is).Lengths for the horizontal and vertical spacing, separated by a space.

If one length is value is declared, that length is used for both the horizontal and vertical spacing. If two lengths are declared, the first one is used for horizontal spacing and the second one is used for vertical spacing.

table { border-spacing:5px; }

table { border-spacing:5px 10px; }

caption-sideDeclares where the table caption is displayed in relation to the table.
top
bottom
left
right
caption { caption-side:top; }

caption { caption-side:right; }

empty-cellsDeclares the way empty cells are displayed (if is).
show
hide
table { empty-cells:show; }

table { empty-cells:hide; }

table-layoutDeclares the type of table layout.
auto
fixed
table { table-layout:auto; }

table { table-layout:fixed; }



Back to Learn More About CSS