Forums

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

Home Forums CSS wrapper div won’t position relative in IE

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29354
    moodesign
    Member

    I have a wrapper div for all my sites pages. The div is spec’d to position:relative. Works nicely in Safari and Firefox.. but IE just throws it to left margin and its static. Is there workaround code for IE only? Code it so that everybody is happy?

    Also using lightbox. I have it spec’d for a top position of 100px. Safari respects that but Firefox and IE don’t. Is there a way to fix for those?

    Thanx. Here’s my site:

    http://www.rondewilde.com

    #77753
    takeiteasy04
    Member

    Try changing this…

    Code:
    margin: -8 auto;

    to this…

    Code:
    margin: -8px auto;
    #77825
    moodesign
    Member

    thnx, but didn’t work. i’m thinking maybe it needs some java tweeking?

    #78110

    If you’re trying to center something using margin: 0 auto;, you must declare your doc-type and use XHTML Transitional. IE will behave then.

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