CSS - size


Description:

The size property specifies the size and orientation of a page box.

Possible Values:

  • length: Sets the physical size of the page box.
  • auto: The page box is sized to fit the display medium.
  • portrait: Sets the page box to the same size as the display sheet, but the longer measure is forced to be the vertical axis.
  • landscape: Sets the page box to the same size as the display sheet, but the longer measure is forced to be the horizontal axis.

Applies to:

Page Context

Example:

Here is the example:

<style tyle="text/css">
<!--
@page legal {size: 8.5in 14in;}
@page {size: landscape;}
-->
</style>
     





Spacer Bottom Left Corner ImageBottom Right Corner Image
Valid XHTML 1.0 Strict  Valid CSS! Check the accessibility of this site according to U.S. Section 508