right-offset-position-fixed-001-ref.xht (545B)
1 <!DOCTYPE html> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Reference File</title> 5 <link rel="author" title="Chris Rebert" href="http://chrisrebert.com" /> 6 <style type="text/css"> 7 html { 8 direction: rtl; 9 } 10 p { 11 direction: ltr; 12 } 13 #greensquare { 14 background-color: green; 15 position: absolute; 16 right: 50%; 17 width: 100px; 18 height: 100px; 19 } 20 </style> 21 </head> 22 <body> 23 <p>Test passes if there is a solid green square and <strong>no red</strong>.</p> 24 25 <div id="greensquare"></div> 26 </body> 27 </html>