>> Updating my bag of tricks again.
>>
[quoted text clipped - 7 lines]
> IE 6 is the one to worry about. It will not centre a block with
> margin: auto and a width.
>>> Updating my bag of tricks again.
>>>
[quoted text clipped - 13 lines]
> I've got IE6 on XP. It centers fine with margin: 0 auto, when I
> have, it in standards mode and not in quirks mode.
That is what happens. See http://www.quirksmode.org/css/quirksmode.html
for a longer list of the differences.
As has already been said, if you use a standards-triggering DOCTYPE,
then IE6 is must less of a pain. I would not recommend doing anything
else, although there may be situations in which you are forced to*.
* Hmm... the most obvious is some managerial insistence on XHTML with
an XML prologue. This will trigger quirks mode.

Signature
Ben.
> > In article <13rudd4o354c...@corp.supernews.com>,
>
> >> Updating my bag of tricks again.
>
> >> What's the level of support for margin: auto.
margin-left: auto; margin-right: auto;
are very well supported (IE 6 and better) as long as you trigger
standards compliant rendering mode. What Bergamot replied to you is
correct.
> but there was a common
> >> hack with some "text-aligns". Is it time to drop the hack?
Yes, it is time to drop the text-align hack. IE 5.x users represent
now a negligeable %tage in world stats. For those IE 5.x users and
others using an old browsers, what matters (WCAG) is that content
remains accessible and that navigation (links) remains functional.
> OK, I'm totally mixed up.
>
> I've got IE6 on XP. It centers fine with margin: 0 auto, when I have,
> it in standards mode and not in quirks mode.
Correct. And I say you can safely remove any text-align hacks.
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
> "http://www.w3.org/TR/REC-html40/strict.dtd">
Why 4.0? Why not 4.01?
> <html>
> <body>
[quoted text clipped - 9 lines]
> Is that a quirk in my IE6 (did they fix it for XP) or am I missing
> something.
No. What you do is fine as far as margin declarations used for
centering... although your #wrapper may be duplicating the role and
function of the body node. Hard to say... as we don't see a real
webpage and can not figure out the real webpage context.
Regards, Gérard