first-page-selectors-003.xht (1062B)
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="ltr"> 4 <head> 5 <title>CSS Test: Page Selectors - First Page in LTR Forced :left</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 left-to-right document 10 can be forced as :left by inserting a page break."/> 11 <style type="text/css"> 12 @page:first { 13 margin-top: 50%; 14 } 15 @page:left { 16 margin-left: 50%; 17 } 18 @page:right { 19 margin: 0; 20 } 21 html { 22 page-break-before: left; 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>