Position Relative - How to get FF and IE the same?

Discussion in 'CSS' started by bobby9101, May 18, 2007.

  1. #1
    hi, i want to position one div on top of another, so I used position relative and it worked in in FF, but in IE it is slightly off.
    How do I fix this?
    Thanks for your help
     
    bobby9101, May 18, 2007 IP
  2. fablex

    fablex Peon

    Messages:
    468
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why do you use position relative? Try a position absolute instead i think. The relative position is there so the absolute positioned elements inside will position themself relative to that element. Hope that still makes sense ;)
     
    fablex, May 18, 2007 IP
  3. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #3
    because the element may not be in the same place of the page.
     
    bobby9101, May 18, 2007 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    Just how much guessing are we supposed to do? Show us what you've got.

    cheers,

    gary
     
    kk5st, May 18, 2007 IP
  5. Mr Blonde

    Mr Blonde Guest

    Messages:
    142
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    using position:absolute; will put them on top of each other regardless of where they are on the page.... unless i'm not understanding you properly?
     
    Mr Blonde, May 18, 2007 IP
  6. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #6
    no like, one may be 100px down sometimes and 50px down sometimes
     
    bobby9101, May 19, 2007 IP