floats-101-ref.xht (827B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Reftest Reference</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 11 <style type="text/css"><![CDATA[ 12 div 13 { 14 border: teal solid 1px; 15 margin: 4px; 16 padding: 4px; 17 } 18 19 div#outer 20 { 21 height: 178px; 22 margin-top: 20px; 23 width: 178px; 24 } 25 26 div#inner 27 { 28 height: 160px; 29 width: 160px; 30 } 31 ]]></style> 32 33 </head> 34 35 <body> 36 37 <p>Test passes if there are two nested squares and if the inner square is equidistant from the outer square on all sides.</p> 38 39 <div id="outer"> 40 <div id="inner">This should be inside the inner square.</div> 41 </div> 42 43 </body> 44 </html>