Using CSS floats

We need to first float the div tag to the right, but we can also define a width to keep the style constant.

#right
{
float: right;
width: 100px;
}

This method gives us a good way to put content on either the left or the right in a neat box that varies in height depending on the length of the content. Again the most useful floats are left and right which make the content appear in the respective direction.