21 lines
1.0 KiB
HTML
21 lines
1.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
|
<html>
|
|
<head>
|
|
<title>CSS 2.1 Test Suite: margin</title>
|
|
<style type="text/css">
|
|
.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 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'">
|
|
</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> |