margin-applies-to-009-ref.xht (717B)
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#parent 13 { 14 border: blue solid 10px; 15 float: left; 16 padding: 50px; 17 } 18 19 div#child 20 { 21 border: orange solid 10px; 22 height: 200px; 23 width: 200px; 24 } 25 ]]></style> 26 27 </head> 28 29 <body> 30 31 <p>Test passes if there is space between the blue and orange lines on all four sides.</p> 32 33 <div id="parent"> 34 <div id="child"></div> 35 </div> 36 37 </body> 38 </html>