first-page-selectors-004.xht (1065B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml" dir="rtl"> 4 <head> 5 <title>CSS Test: Page Selectors - First Page in RTL Forced :right</title> 6 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#page-selectors"/> 8 <meta name="flags" content="paged may"/> 9 <meta name="assert" content="The first page of a right-to-left document 10 can be forced as :right by inserting a page break."/> 11 <style type="text/css"> 12 @page:first { 13 margin-top: 50%; 14 } 15 @page:right { 16 margin-left: 50%; 17 } 18 @page:left { 19 margin: 0; 20 } 21 html { 22 page-break-before: right; 23 margin: 0; padding: 0.2em; 24 border: solid blue; 25 border-width: thick thin thin thick; 26 } 27 </style> 28 </head> 29 <body> 30 <p>When printed the top left corner of this box must be in 31 the exact center of this page.</p> 32 </body> 33 </html>