c5505-imrgn-000.xht (1966B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: margin</title> 5 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/> 6 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 7 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-30 --> 8 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#margin"/> 9 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties" title="8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', and 'margin'"/> 10 <link rel="match" href="c5505-imrgn-000-ref.xht" /> 11 12 <meta name="flags" content="ahem image" /> 13 14 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 15 <style type="text/css"><![CDATA[ 16 .one, .two { margin: 1em; } 17 .one { font: 15px/1 Ahem; width: 7em; background: red; } 18 .one div { color: green; background: lime; } 19 .one span { margin: 1em; background: orange; color: yellow; } 20 ]]></style> 21 </head> 22 <body> 23 <p>The two bars below should be identical:</p> 24 <div class="one"><div> x<span> x </span>x </div></div> 25 <div class="two"> 26 <img src="support/swatch-green.png" alt="Image download support must be enabled" 27 /><img src="support/swatch-lime.png" alt="Image download support must be enabled" 28 /><img src="support/swatch-orange.png" alt="Image download support must be enabled" 29 /><img src="support/swatch-yellow.png" alt="Image download support must be enabled" 30 /><img src="support/swatch-orange.png" alt="Image download support must be enabled" 31 /><img src="support/swatch-lime.png" alt="Image download support must be enabled" 32 /><img src="support/swatch-green.png" alt="Image download support must be enabled" 33 /> 34 </div> 35 </body> 36 </html>