It will make two content columns that are lined up. Further, you can ensure that they are the exact same size by setting a width:
<div style="float:left;width:100px">Left content</div>
<div style="float:right;width:100px">Right content</div>
And you can put them right next to each other by putting them in another div which combines their real width:
<div style="width:200px">
<div style="float:left;width:100px">Left content</div>
<div style="float:right;width:100px">Right content</div>
</div>
If you use any kind of borders, padding, or margins for the divs, like this:
<div style="float:left;width:100px;border:1px solid black;padding:1px;margin:1px">
Example of taking the box model into account:
<div style="width:207px">
<div style="float:left;width:100px;border:1px solid black;padding:1px">Left content</div>
<div style="float:right;width:100px;border:1px solid black;border-left:none;padding:1px">Right content</div>
</div>
I had to add up the widths of the actual elements(100+100=200), the borders(2+1=3), and the padding(2+2=4) to come up with 207. [ theymos's advice column | Ask theymos A Question ]
Attention: NOTHING on this site may be reproduced in any fashion whatsoever without explicit consent (in writing) of the owner of said material, unless otherwise stated on the page where the content originated. Search engines are free to index and cache our content. Users who post their account names or personal information in their questions have no expectation of privacy beyond that point for anything they disclose. Questions are otherwise considered anonymous to the general public.