Home > Article > Web Front-end > Setting the page size value in CSS
There are four values available for setting the page size -
In the following example, the outer edge of the page box will be aligned with the target. The percentage value of the Margins property is relative to the target size, so if the target paper size is 21.0 cm × 29.7 cm (i.e. A4), the margins are 2.10 cm and 2.97 cm.
<style type = "text/css"> <!-- @page { size: auto; /* auto is the initial value */ margin: 10%; } --> </style>
The above is the detailed content of Setting the page size value in CSS. For more information, please follow other related articles on the PHP Chinese website!