:left
Quick Summary for :left
The :left CSS pseudo-class, used with the @page at-rule, represents all left-hand pages of a printed document.
Code Usage for :left
/* Selects any left-hand pages when printing */ @page :left {   margin: 2in 3in; } 
More Details for :left

:left

The :left CSS pseudo-class, used with the @page at-rule, represents all left-hand pages of a printed document.

/* Selects any left-hand pages when printing */ @page :left {   margin: 2in 3in; } 

Whether a given page is "left" or "right" is determined by the major writing direction of the document. For example, if the first page has a major writing direction of left-to-right then it will be a :right page; if it has a major writing direction of right-to-left then it will be a :left page.

Note: This pseudo-class can be used to change only the margin, padding, border, and background properties of the page box. All other properties will be ignored, and only the page box, not the document content on the page, will be affected.

Syntax

:left

Examples

Setting a margin for left-hand pages

@page :left {   margin: 2in 3in; } 

Specifications

Specification
Proposals for the future of CSS Paged Media # left-right-first

See also

@page Other page-related pseudo-classes: :first, :right

Last modified: Aug 12, 2021, by MDN contributors

Select your preferred language English (US)EspañolFrançais日本語Русский中文 (简体) Change language

No Items Found.

Add Comment
Type in a Nick Name here
 
Other Categories in CSS
css
Search CSS
Search CSS by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote


Me
Random CSS Property

repeating-linear-gradient()

The repeating-linear-gradient() CSS function creates an image consisting of repeating linear gradients. It is similar to linear-gradient() and takes the same arguments, but it repeats the color stops infinitely in all directions so as to cover its entire container. The function's result is an object of the <gradient> data type, which is a special kind of <image>.
repeating-linear-gradient() css reference