CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.
I don’t understand this. The foreground on the main page (where the content under the navigation) is emitting a white background over the background I have…yet I don’t have any background going. So it’s cutting the border background off.
Here’s the link to the background:
Here’s the web site I’m working on. I don’t understand why it’s doing this.
add overflow: hidden; to #subcontainer – you haven’t contained the floating children.
Alternatively, you could add clear: both to #footer, or use the .clearfix method on #subcontainer, or a few other methods…
Thank you so very much! That clear:both worked great!
Wierd how backgrounds don’t always fill in CSS without some overflow code or whatnot.
Ah okay, I need to learn more about overflow.
Thank you again!
Not that weird when you understand how floats and absolute positioning work.
You must be logged in to reply to this topic.
Search for Stuff
Browse the Archives
Get the Newsletter
... or get the RSS feed