A test case:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
.floats { overflow: hidden; width: 100%; background: #F93; }
.floats div { float: left; width: 50%; margin-left: -1px; background: #F93; border-top: 1px solid #FFF;}
.clear { clear: both }
</style>
</head>
<body>
<div class="floats">
<div>1<br>is longer than 2</div>
<div>2</div>
<div class="clear">3<br>
is longer than 4</div>
<div>4</div>
<div class="clear">5</div>
<div>6</div>
</div>
</body>
</html>
Bookmarks