- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
CSS @page rule
You can specify the dimensions, orientation, margins, etc., of a page box within an @page rule. The dimensions of the page box are set with the 'size' property. The dimensions of the page area are the dimensions of the page box minus the margin area.
For example, the following @page rule sets the page box size to 8.5 × 11 inches and creates '2cm' margin on all sides between the page box edge and the page area:
<style> <!-- @page { size:8.5in 11in; margin: 2cm } --> </style>
- Related Articles
- CSS @media rule
- What is horizontal rule in HTML Page?
- Animate CSS column-rule property
- Usage of CSS !important rule
- Usage of CSS @charset rule
- Usage of CSS @import: rule
- Usage of @import Rule for CSS
- Animate CSS column-rule-color property
- Usage of CSS @font-face rule
- Usage of page-break-before, page-break-after, and page-break-inside properties in CSS
- Rules to override Style Sheet Rule in CSS
- Change column-rule-width property with CSS Animations
- When is the !important rule used in CSS?
- Insert a new CSS rule while working on JavaScript?
- Retrofit existing web page with mobile CSS

Advertisements