View Single Post
Old 11-18-2011, 11:55 AM   PM User | #4
Kor
Red Devil Mod


 
Kor's Avatar
 
Join Date: Apr 2003
Location: Bucharest, ROMANIA
Posts: 8,478
Thanks: 58
Thanked 379 Times in 375 Posts
Kor has a spectacular aura aboutKor has a spectacular aura about
The floated elements escape from their parent overflow. As a result, their height is not added to the height of the parent. To bypass that, there are several methods. My favorite is inserting an empty DIV, as the child, to clear the floats:
Code:
<div id="parent">
	<div style="float:left"></div>
	<div style="float:right"></div>
	<div style="clear:both"></div>
</div>
__________________
KOR
Offshore programming
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Kor is offline   Reply With Quote