WordPress.org

Support

Support » Themes and Templates » Header img is not centered in IE9

Header img is not centered in IE9

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Andrew Nevins

    @anevins

    Forum moderator

    I’d remove the header HTML out of the <div id="page">.
    Then I’d move the padding from the <body> onto <div id="page">.

    Just for future reference, avoid using negative margins if you want a browser-compatible website.

    Thanks for the reply !

    I did what you suggested, i changed the margin left & right to auto as well… but it became worth because :
    1) on FF, the header became completely fixed, even with the screen resize (for example from right to left),
    2) on IE, the whole body has moved to right…

    Is the problem coming from the display:inline-block ? Does IE9 has a problem with this code ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Header img is not centered in IE9’ is closed to new replies.