: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
“If you just sit and observe, you will see how restless your mind is. If you try to calm it, it only makes it worse, but over time it does calm, and when it does, there’s room to hear more subtle things. You see so much more than you could see before. It’s a discipline; you have to practice it.”
Steve Jobs
Random CSS Property

:nth-last-child()

The :nth-last-child() CSS pseudo-class matches elements based on their position among a group of siblings, counting from the end.
:nth-last-child css reference