Div is pissing me off
- Started
- Last post
- 10 Responses
- kalkal
If you don't set any dimentions for a div, it should simply wrap its self around it's contents, right? I Have a bunch of divs and they each have a bottom border yet they're off at the the top of the screen rather wrapping their contents up (which are in the right place!)
- skelly_b0
Do those content items have a Float applied? You may need to Clear that.
- kalkal0
Float: left;
but, I pretty sure I kinda need to keep that for the layout I'm using?!?!
- kalkal0
Yes, I do. Otherwise everything gets displayed on top of each other (but the problem is fixed)
What to do?!?!?!
- kalkal0
If I stick the floats in a div, then stick that in a div too, will the outer div know what size it should be?
- stupidresponse0
you need something at that clears the floats
- kalkal0
How do I do that?
- kalkal0
Genius I say, pure genius. Bravo! Thanks!
- kalkal0
Hang on, the bastards are still ignoring my margin setting... even when I tell them how !important they are?
- kalkal0
Ah, I got it, I put in my clearing div one div too early. I can't believe people manage remember all this stuff.