SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast CRYSTL's Avatar
    Join Date
    Sep 2003
    Location
    Kazakhstan
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Div-in-div background issue

    I have a #main div with a black background. Then div #contents in it with background-picture (that is repeat-y) and a background-color also. And it's okay.

    But in #contents I have couple more divs with no background color at all. Just simple divs. But they got black background (like #main) in IE, instead of a background color of #contents.

  2. #2
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Location
    Mechanicsburg, PA
    Posts
    7,251
    Mentioned
    113 Post(s)
    Tagged
    1 Thread(s)
    If you have no background color defined, it's going to use the background color of the parent. If you want it to be like a white background, then set the child div to white.
    Dave Maxwell - Manage Your Site Team Leader
    My favorite YouTube Video! | Star Wars, Dr Suess Style


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
  •