left-offset-position-fixed-001-ref.xht (493B)
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 #greensquare { 8 background-color: green; 9 position: absolute; 10 left: 50%; 11 width: 100px; 12 height: 100px; 13 } 14 </style> 15 </head> 16 <body> 17 <p>Test passes if there is a solid green square and <strong>no red</strong>.</p> 18 19 <div id="greensquare"></div> 20 </body> 21 </html>