<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CSS 2.1 Test Suite: margin</title> <style type="text/css"><![CDATA[ .one, .two { margin: 1em; } p { color: navy; } .one { font: 15px/1 Ahem; width: 7em; background: red; } .one div { color: green; background: lime; } .one span { margin: 1em; background: orange; color: yellow; } ]]></style> <link title="8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', and 'margin'" href="http://www.w3.org/TR/CSS21/box.html#margin-properties" rel="help"/> </head> <body> <p>The two bars below should be identical:</p> <div class="one"><div> x<span> x </span>x </div></div> <div class="two"> <img alt="" src="support/swatch-green.png"/><img alt="" src="support/swatch-lime.png"/><img alt="" src="support/swatch-orange.png"/><img alt="" src="support/swatch-yellow.png"/><img alt="" src="support/swatch-orange.png"/><img alt="" src="support/swatch-lime.png"/><img alt="" src="support/swatch-green.png"/> </div> </body> </html>