Centering problem in IE

Discussion in 'HTML' started by Sunny, Feb 28, 2006.

  1. Sunny

    Sunny Guest

    Hi

    Anybody had problems with IE6.0.2900.2180 sp2 on XP pro ?

    A div which was h-centered (margin-left:auto; margin-right:auto) now doesn't
    center anymore.
    It's centered in FF and Opera on the same machine than IE and in
    FF and Opera on a linux machine.

    Here's a snippet
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>

    <style>
    ..wrapper, .headbx, .footbx {width:54em;margin-left:auto; margin-right:auto }
    ..logo, .nom, .namadd{float:left; background-color:transparent}
    ..nom, .namadd {width:15em;}
    ..headbx, .namadd{height:7em}
    ..adress {font-weight:bolder}
    ..menu UL, .menu LI, .footbx UL, .footbx LI
    {display:inline;background-color:transparent}
    ..logo IMG, .nom IMG {outline-style:none; border:0px}
    ..headbx {background: url(pics/entete.gif) no-repeat fixed}
    </style>
    </head>
    <body>
    <div class="wrapper">
    <!-- some more included divs -->
    </div>
    </body></html>

    This is supposed to display horizontally centered but doesn't in IE6. It
    does in FF and Opera on WinXP and on Linux.


    Thanks
     
    Sunny, Feb 28, 2006
    #1
    1. Advertising

  2. Sunny

    Neredbojias Guest

    With neither quill nor qualm, Sunny quothed:

    > Hi
    >
    > Anybody had problems with IE6.0.2900.2180 sp2 on XP pro ?
    >
    > A div which was h-centered (margin-left:auto; margin-right:auto) now doesn't
    > center anymore.
    > It's centered in FF and Opera on the same machine than IE and in
    > FF and Opera on a linux machine.
    >
    > Here's a snippet

    <snip>

    Need url.

    --
    Neredbojias
    Contrary to popular belief, it is believable.
     
    Neredbojias, Mar 1, 2006
    #2
    1. Advertising

  3. Sunny

    BootNic Guest

    > "Sunny" <> wrote:
    > news:t45Nf.3948$....
    >
    > Hi
    >
    > Anybody had problems with IE6.0.2900.2180 sp2 on XP pro ?
    >
    > A div which was h-centered (margin-left:auto; margin-right:auto)
    > now doesn't center anymore.
    > It's centered in FF and Opera on the same machine than IE and in
    > FF and Opera on a linux machine.
    >
    > Here's a snippet
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"


    ^^^^
    Did you try to remove the white space before the document type?
    [snip]

    --
    BootNic Wednesday, March 01, 2006 1:41 AM

    You can discover what your enemy fears most by observing the means he
    uses to frighten you.
    *Eric Hoffer*
     
    BootNic, Mar 1, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. brucie

    HELP! Centering problem...

    brucie, Jan 13, 2004, in forum: HTML
    Replies:
    38
    Views:
    1,058
  2. Brian
    Replies:
    7
    Views:
    2,162
    Acmeous
    Oct 31, 2008
  3. Thad
    Replies:
    2
    Views:
    416
  4. Jeff
    Replies:
    1
    Views:
    570
    Alexey Smirnov
    May 15, 2007
  5. bizshop

    CSS Text Centering Problem

    bizshop, Sep 17, 2007, in forum: HTML
    Replies:
    4
    Views:
    364
    Beauregard T. Shagnasty
    Sep 17, 2007
Loading...

Share This Page