Centering problem in IE

S

Sunny

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
 
N

Neredbojias

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.
 
B

BootNic

Sunny said:
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*
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top