Posts: 20
Location: Aurora, Illinois
|
Quote:
Originally Posted by Gilligan
After the floated divs, add this bit of code
<br style="clear:both" />
That should sort it
(also, <br /> was just an example, you can also use other tags, i just use <br /> because its self-closing)
|
Just to reinforce what the resident lovely lady in red said, I do not advocate or recommend the use of extra markup to clear an element since it introduces non-semantic code that has no place being in the document and can lead to code-bloat. Instead, just applying the clear property to the element following the float will take care of it (though you may have to use overflow: hidden; to force an element to contain its floated children - a common occurance in many of the layouts I develop).
__________________
What do Web design, Web development and search engine optimization all have in common? When done properly, they'll help your users find and get what they want when they want it.
|