blob: e10734d9de871505d643df0f8934824e1ac9af20 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>CSS 2.1 Test Suite: margin-bottom</title>
<style type="text/css">
.test { font: 10px/1 Ahem; width: 10em; border: solid black; padding: 0; background: yellow; color: orange; }
.zero {background-color: teal; margin-bottom: 0;}
.one {margin-bottom: 5.29166mm; background-color: aqua;}
.two {margin-bottom: 20px; background-color: blue;}
.three {margin-bottom: 2em; background-color: aqua;}
.four {margin-bottom: 20%; background-color: teal;}
.five {margin-bottom: 20px;}
.six {margin-bottom: -10px; background-color: aqua;}
p, ul, li {margin: 0; padding: 0; list-style:none;}
.control { border: solid black; padding: 0; background: red; }
.control .teal { background: teal; }
.control .aqua { background: aqua; }
.control .blue { background: blue; }
.control .yellow { background: yellow; }
.control .long { width: 70px; height: 10px; background: orange; }
.control .short { width: 40px; height: 10px; background: orange; }
.control .blank { width: 100px; height: 20px; }
</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 diagrams below should be identical, with no red present.</p>
<table>
<tr>
<td class="test">
<p class="zero">
xxxxxxx
</p>
<p class="zero">
xxxx
</p>
<p class="one">
xxxxxxx xxxx
</p>
<p class="two">
xxxxxxx xxxx
</p>
<p class="three">
xxxxxxx xxxx
</p>
<p class="four">
xxxxxxx xxxx
</p>
<ul class="two">
<li>xxxxxxx</li>
<li>xxxx</li>
<li class="five">xxxxxxx</li>
<li>xxxx</li>
</ul>
<p class="zero">
xxxxxxx xxxx
</p>
<p class="six">
xxxxxxx xxxx
</p>
<p class="zero">
xxxx
</p>
</td>
<td class="control">
<div class="teal"><div class="long"></div><div class="short"></div></div>
<div class="aqua"><div class="long"></div><div class="short"></div></div>
<div class="yellow"><div class="blank"></div></div>
<div class="blue"><div class="long"></div><div class="short"></div></div>
<div class="yellow"><div class="blank"></div></div>
<div class="aqua"><div class="long"></div><div class="short"></div></div>
<div class="yellow"><div class="blank"></div></div>
<div class="teal"><div class="long"></div><div class="short"></div></div>
<div class="yellow"><div class="blank"></div></div>
<div class="blue"><div class="long"></div><div class="short"></div><div class="long"></div></div>
<div class="blue"><div class="blank"></div></div>
<div class="blue"><div class="short"></div></div>
<div class="yellow"><div class="blank"></div></div>
<div class="teal"><div class="long"></div><div class="short"></div></div>
<div class="aqua"><div class="long"></div></div>
<div class="teal"><div class="short"></div></div>
</td>
</tr>
</table>
</body>
</html>