<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css" media="Screen">
* .float {
float: left;
background: red;
}
* .float-divider {
clear: both;
height: 20px;
margin-bottom: 20px;
border-bottom: 5px solid black;
font-size: 1px;
line-height: 1px;
background: pink;
}
</style>
</head>
<body>
<h2>First Row of Floats</h2>
<div class="float">Float 1</div>
<div class="float">Float 2</div>
<div class="float">Float 3</div>
<div class="float-divider"></div>
<h2>Second Row of Floats</h2>
<div class="float">Float 4</div>
<div class="float">Float 5</div>
<div class="float">Float 6</div>
</body>
</html>
|