SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast p3nnywise's Avatar
    Join Date
    May 2005
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Nested divs in FF, background color not rendering...

    Is there a known issue with Firefox not rendering background colors ( or images, for that matter ) in nested divs? IE renders the background color of the div that is going to hold my content just fine. Firefox on the other hand just shows the background of my container div. I've tried googling up this issue and I haven't been able to find a fix or a workaround. I wouldn't put it past myself to have messed up my stylesheet, but after checking it I don't see anything that jumps out at me. Does anyone have any words of wisdom or advice? You can see what I'm working on at the following url...

    http://home.revealed.net/sjsmith/

    I commented my CSS, so hopefully anyone who looks will have an idea of what I was aiming for. Thanks to anyone who takes a look!

  2. #2
    SitePoint Member ebooboy's Avatar
    Join Date
    Feb 2005
    Location
    The 7th Dimension
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try adding

    Code:
    background: #FFFFFF;
    To the wrapper div

  3. #3
    Non-Member
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    4,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello

    clear the floats , see FAQ CSS
    http://www.sitepoint.com/forums/show...5&postcount=15

    the PIE way
    http://www.positioniseverything.net/easyclearing.html

    head+body #wrapper2:after{
    content: ".";
    display: block;
    height:0;
    clear: both;
    visibility: hidden;
    }

  4. #4
    SitePoint Enthusiast p3nnywise's Avatar
    Join Date
    May 2005
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the suggestions guys. In the end, I just floated the container div which seems to have alleviated the issue.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •