![]() |
CSS Ninjas: Your clear fix!
Alright, so I'm working on a 100% CSS/Div design and I've Googled around and nobody has a definite good clear fix for CSS, what do you guys use?
|
clear:both? whachaoutalkinboutwillis!>!?>!?
|
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...
|
Quote:
start over... |
can you show me your code?
|
Quote:
|
Quote:
|
overflow:auto should do it
|
why dont you ask jack oat oh wait thats you
|
im just here to troll really i have no actual useful information to give
|
Quote:
2) The :after pseudo-class may not work on older browsers. 3) Setting an overflow attribute for the parent element, whether it's "auto" or "hidden", should be sufficient to clear the floats. |
Quote:
|
Quote:
just teasin , i dont know who jack oat is either |
Quote:
|
Quote:
get back to your cage... http://www.stlwater.com/images/hose2.jpg |
Quote:
|
Dear Sands, what are your rates for "Kitten Punching"?
|
who is jack oaf?
|
Quote:
|
Quote:
|
Quote:
|
I'd like to hire someone for kitten punching too. In the next few days. Please ICQ me with your rates. Thanks.
|
Computerized
Secret Socialism |
lets see the design you are working on
|
Quote:
|
Quote:
|
Quote:
|
Bump for Killswitch and CSS.
|
I think he fixed it.
|
Quote:
. . . . . Seriously, I could fix this in two seconds with your code. that, and what browser the problem is in. specially cause you mentioned padding. they all like to handle padding differently a lot of the time. <div problem element> ::all divs inside this element:: </div> then the css as well .problem_element{ } ::all divs inside this element:: *all elements as well, not just divs. i mean p's span's, anything with css styling ... Seriously, me best bet is that you have some floats somewhere which aren't being cleared. like; div <<-this div float float div div div float div div float float "this" div, won't know the end of it's content unless every one of those floats are cleared. big thing to remember is to make sure each one of your floats are cleared. guarantee that solves your problem |
Clearing is for floats you can't clear an absolute element
|
Quote:
|
Quote:
|
Hey Zuzana, can you please leave me some examples of dump site designs you've done please, and thank you.
|
I love Cock Sucking Sluts...
|
Quote:
|
who is josh dirt?
|
Quote:
|
Quote:
CSS = Cock Sucking Sluts |
Quote:
|
Quote:
|
Quote:
|
I am jerking off right now
I'm on webcam feel me |
Quote:
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. |
Juan! Send me a message on AIM, when I get back tonight I wanna talk with you.
fknvdscom |
All times are GMT -7. The time now is 05:52 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc