Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Foreground cutting off the background…

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #43396
    robertallen
    Participant

    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…](http://www.robertallenbaker.com/dzindna/wp-content/themes/dzindna/images/background-topcontent.png “Link”)

    Here’s the web site I’m working on. I don’t understand why it’s doing this.
    [Link…](http://www.robertallenbaker.com/dzindna/ “Link”)

    #128226
    wolfcry911
    Participant

    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…

    #128233
    robertallen
    Participant

    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.

    #128247
    robertallen
    Participant

    Ah okay, I need to learn more about overflow.

    Thank you again!

    #128250
    wolfcry911
    Participant

    Not that weird when you understand how floats and absolute positioning work.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.