View Single Post
Old 05-31-2009, 03:36 PM   #19 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

If the div is floated, then the container won't be stretched, unless you add a clear div like I did.

HTML Code:
<div id="container">
<div>
Your content..
</div>

<div class="clear"></div>
</div>
And the css:
.clear { clear: both; }
__________________
Tanax is offline  
Reply With Quote