![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
Role of size property in CSS to set the size and orientation of a page box
The size property specifies the size and orientation of a page box. There are four values which can be used for page size
- auto - The page box will be set to the size and orientation of the target sheet.
- landscape − Overrides the target's orientation. The page box is the same size as the target, and the longer sides are horizontal.
- portrait − Overrides the target's orientation. The page box is the same size as the target, and the shorter sides are horizontal.
- length − Length values for the 'size' property create an absolute page box. If only one length value is specified, it sets both the width and height of the page box. Percentage values are not allowed for the 'size' property.
Advertisements