Ejemplos de float
HTML
<!DOCTYPE html>
<html>
<head>
<title>Elementos flotantes</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<body>
<div id="capa1">
Capa-1
</div>
<div id="capa2">
Capa-2
</div>
<div id="capa3">
capa-3
</div>
</body>
</html>
CSS
div{
font-size:25px;
border:2px;
border-style:solid;
margin:10px;
padding:10px;
height:100px;
background-color:white;
width:100px;
float:left;
}
/* div#capa3{
clear:left;
}