: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
I believe that in order to better your knowledge base, it takes a lot of failing in order to succeed. I don't consider anything a failure as long as you get back up and you learn from your own mistakes.
Unknown
Random CSS Property

cross-fade()

The cross-fade() CSS function can be used to blend two or more images at a defined transparency. It can be used for many simple image manipulations, such as tinting an image with a solid color or highlighting a particular area of the page by combining an image with a radial gradient.
cross-fade() css reference