View Single Post
Old 12-07-2009, 03:43 PM  
cyber
Confirmed User
 
cyber's Avatar
 
Industry Role:
Join Date: Jan 2004
Posts: 182
Quote:
Originally Posted by Killswitch View Post
I have a div with 3 more divs inside of it, those 3 divs use absolute positioning and left attributes to put them where I want them, I then do .clearFix:after { clear: both; } and set the class of that parent div to clearFix but it's still showing the bottom of the div right up against the bottom of the 3 divs instead of the 15px padding there is supposed to be...
Everything you're doing is useless.

You don't clear absolutes. And by "left attributes" I hope you don't mean you're floating them left because that's useless, too (on absolute elements).

If you have it like this:

<div>
<div ABSOLUTE1></div>
<div ABSOLUTE2></div>
<div ABSOLUTE3></div>
</div>

Then set a minimum height for the container DIV. Positioning an element as absolute takes it out of the regular flow of the design, and so it doesn't really take up any space as a normal box would.
cyber is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote