blob: d7eca9864b4c3247edb0ec0bc09af9964e89444e [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>CSS 2.1 Test Suite: clear</title>
<script src="../resources/ahem.js"></script>
<style type="text/css">
body { overflow: hidden; }
div { font: 15px/1 Ahem; color: green; background: red url(support/css1test5526.png) no-repeat; width: 20em; border: solid black; }
p { margin: 1em 0; }
.left {float: left;}
.right {float: right;}
.one {clear: left;}
.two {clear: right;}
.three {clear: both;}
.four {clear: none;}
</style>
<link title="9.5 Floats" href="http://www.w3.org/TR/CSS21/visuren.html#floats" rel="help">
<link title="9.5.2 Controlling flow next to floats: the 'clear' property" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" rel="help">
</head>
<body>
<p>There should be a big green box below.</p>
<div>
<img alt="[Image]" height="50" src="support/swatch-green.png" class="left">
<p>
xxxxx xxxx xxx xx x xx xxx xxxx
xxxxx xxxx xxx xx x xx xxx xxxx
xxxxx xxxx xxx xx x xx xxx xxxx
</p>
<img alt="[Image]" height="50" src="support/swatch-green.png" class="left">
<p class="one">
xxxxx xxxx xxx xx x xx xxx xxxx
xxxxx xxxx xxx xx x xx xxx xxxx
</p>
<img alt="[Image]" height="50" src="support/swatch-green.png" class="right">
<p class="two">
xxxxx xxxx xxx xx x xx xxx xxxx
xxxxx xxxx xxx xx x xx xxx xxxx
</p>
<img alt="[Image]" height="50" src="support/swatch-green.png" class="left">
<img alt="[Image]" height="50" src="support/swatch-green.png" class="right">
<p class="three">
xxxxx xxxx xxx xx x xx xxx xxxx
xxxxx xxxx xxx xx x xx xxx xxxx
</p>
<img alt="[Image]" height="50" src="support/swatch-green.png" class="left">
<img alt="[Image]" height="50" src="support/swatch-green.png" class="right">
<p class="four">
xxxxx xxxx xxx xx x xx xxx xxxx
xxxxx xxxx xxx xx x xx xxx xxxx
xxxxx xxxx xxx xx x xx xxx xxxx
xxxxx xxxx xxx xx x xx xxx xxxx
</p>
</div>
</body>
</html>