Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] IE not recognising negative margin

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #149952
    JumpJump
    Participant

    I’m having trouble with all versions of IE recognising a negative margin on an element. Even IE10 won’t recognise it. The element is as follows:

    #back {
        overflow: hidden;
        min-height: 700px;
        margin-top: -235px;
        padding-top: 80px;
        text-align: center;
        position: relative;
        zoom:1;
        display: block;
    }
    

    The element needs a negative margin. It can’t be absolutely positioned. I’ve kind of run out of options at this stage and would appreciate any help.

    Link

    #149956
    Paulie_D
    Member

    Could it be the wrapping div is positioned too?

    #149962
    JumpJump
    Participant

    Yep, I finally figured it out. I put the misbehaving element in a container div and floated that div left with a 100% width. That sorted it.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.