treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] Foreground cutting off the background...

  • Hi all,

    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: Link...

    Here's the web site I'm working on. I don't understand why it's doing this. Link...

  • 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.