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

:right

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

/* Selects any right-hand pages when printing */ @page :right {   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

:right

Examples

Setting margins for right-hand pages

@page :right {   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, :left

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
therock Somewhere along this crazy road I learned (often times the hard way) the most important things I can do is be authentic, trust my gut, be the hardest worker in the room, celebrate the mistakes, be a grateful man and always remember that it's nice to be important, but it's more important to be nice.
The Rock
Random CSS Property

unset

The unset CSS keyword resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not. In other words, it behaves like the inherit keyword in the first case, when the property is an inherited property, and like the initial keyword in the second case, when the property is a non-inherited property.
unset css reference