CSS Div Overlapping in IE/FF

Discussion in 'CSS' started by abcdefGARY, Feb 23, 2007.

  1. #1
    never mind, fixed it.

    hi.

    I wasn't sure how to explain this, so I took some snapshots.

    In firefox:

    [​IMG]

    the above image is correct.

    In IE:

    [​IMG]

    notice how the sidebar won't go over top of the header (grey area), rather, it goes beneath the div instead.

    hopefully someone will know how to solve this, thanks.
     
    abcdefGARY, Feb 23, 2007 IP
  2. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try to jumble the arrangements of the divs, what's below and what's above matters (i'm talking about the code).
     
    Dondon2d, Feb 23, 2007 IP
  3. nwk

    nwk Well-Known Member

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    158
    #3
    Add higher z-index for the sidebar
    Like
    
    #sidebar{
    z-index:99;
    ....
    ...
    }
    Code (markup):
    Nwk:)
     
    nwk, Feb 24, 2007 IP
  4. abcdefGARY

    abcdefGARY Well-Known Member

    Messages:
    665
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #4
    ok nvm, i didn't fix it. it still occurs in IE.

    I tried rearranging the div's but that doesn't seem to help...

    and I tried the z-index after doing a little reading at w3schools and it doesn't seem to apply in IE.

    edit: adding position:relative to the sidebar did the trick
     
    abcdefGARY, Feb 24, 2007 IP
  5. nwk

    nwk Well-Known Member

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    158
    #5
    Give me the link or code of your work. may be I can try a little bit with the real codes itself..:D
     
    nwk, Feb 24, 2007 IP
  6. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #6
    If you still need help, make it clear whether problem is still there or it's gone.
    I'd like to see the codes, too.
     
    Clive, Feb 25, 2007 IP