Tutorials Point


  CSS Home

  CSS Reference
  Pseudo Classes & Elements

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

CSS - size


previous next AddThis Social Bookmark Button


Advertisements

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>

For more detail please look into CSS Paged Media.



previous next Printer Friendly

Advertisements


  

Advertisements