In which we discuss four ways that elements can be floated: simple, margin under float, opposing, and same side.
.floater {
margin-right: 10px;
float: left;
background-color: #CEE14B;
width: 100px;
height: 100px;
}
div — wraps around its right-hand edge, falling to the
left-hand edge only when the float is 'cleared', either implicitly or explicitly.When two columns are required, floats can be used in one of two ways:
div {
margin-left: 110px;
}
Alternatively, opposing floats can be used
The final float type to discuss is one I like to call 'same side', because I've spent about 10 seconds thinking up a name. The result is similar to that of many graphical file managers when displaying icons:

A series of fixed-dimension boxes, all floated to the left, within a container, adapts to that container's layout.
div {
width: 50px;
height: 50px;
float: left;
margin: 10px;
background-color: #FCAF3E;
}