• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Problem with position-relative in IE

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem with position-relative in IE

    Trying to do the missus's website and she like the casual billboard approach with images and text slapped on in overlapping positions as here:

    Bookmates Ltd - classroom display

    The obvious way seemed to be to use position relative and move some things up a bit. Fine in FF etc but in IE the height of the page still reflects the original position and you get a big gap at the bottom.

    Not a big deal but are there any alternative approaches that would work better? Cheers.
    bloggoth

    If everything isn't black and white, I say, 'Why the hell not?'
    John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

    #2
    Originally posted by xoggoth View Post
    Trying to do the missus's website and she like the casual billboard approach with images and text slapped on in overlapping positions as here:

    Bookmates Ltd - classroom display

    The obvious way seemed to be to use position relative and move some things up a bit. Fine in FF etc but in IE the height of the page still reflects the original position and you get a big gap at the bottom.

    Not a big deal but are there any alternative approaches that would work better? Cheers.
    Try using position:absolute instead. It removes the elements from the flow of the page so you shouldn't get the space at the bottom.

    Comment


      #3
      Cheers bunk. Trouble is (should have mentioned) that it is all kept in a central box whatever the monitor resolution using a containing div with margin auto. Setting absolute overrides that.
      bloggoth

      If everything isn't black and white, I say, 'Why the hell not?'
      John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

      Comment


        #4
        Originally posted by xoggoth View Post
        Cheers bunk. Trouble is (should have mentioned) that it is all kept in a central box whatever the monitor resolution using a containing div with margin auto. Setting absolute overrides that.
        Ah, ok. Try adding position:relative to the containing div. That should make the absolutely positioned elements behave as if they are positioned relative to the containing div.

        Hope that makes sense.

        Comment

        Working...
        X