|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Div's falling out of containing divs
I'm trying to make some components... I have a containing div of 400px, then a couple more divs of 200px a peice both floated left.
However the containing div class, when I highlight it in firebug, or show dotted borders doesn't actually contain the other divs that I made. It's frustrating because it is working on the more simple components, and the more complex ones are a bit much to be copying and pasting into here. It seems that when I have a lot of sub divs with floating the contained divs kind of "pop" out of the containing div. When I try to highlight the div through firebug it doesn't even appear. any help would be very appreciated. |
|
#2
|
|||
|
|||
|
It seems that I need to do a "clear"... but I don't really understand why, also, I don't know how to do a clear at the end of a component in a non-deprecated way "<br clear="all"/>"
Thanks again |
|
#3
|
||||
|
||||
|
Congratulations on figuring out the issue and the most basic solution.
![]() Hmm... and it seems I haven't welcomed you here yet, so welcome to DevShed Forums, walnutmon. ![]() I suggest you read up on clearing and containing floats. Other than floating the parent of the floated element(s) too, which often isn't a good option, the PIE/Aslett approach is best. Make Your Site BulletProof With Floats is also worth reading.
__________________
Spreading knowledge, one newbie at a time. Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions IE7: the generation 7 browser new in a world of generation 8 browsers. Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around. |
|
#4
|
|||
|
|||
|
Quote:
Holy Post count batman! Thanks for the welcome. I'll take a look at the articles you posted and reply again if I have further questions. Thanks. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Div's falling out of containing divs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|