http://www.perlmonks.org?node_id=109692


in reply to Re: Weirdness under IE6
in thread Weirdness under IE6

After checking the CSS1, CSS2 and HTML4 specifications, I think that no browser, be it IE6 or Mozilla get it right.

The reason is quite simple: the 'align' attribute doesn'txist anymore in CSS2, and is deprecated in HTML4.
The problem is that it should be replaced by the attribute 'text-align' in a CSS, but these two attributes dont have the same function: 'align', in HTML means 'The table is to the center of the document. '(1) and text-align in CSS means 'This property describes how inline content of a block is aligned.' (2)

So, while I'm all with using standards and all that, you may have noticed that the generated perlmonks pages are in HTML 4.01, which doesn't uses CSS2, and which supports (though in a deprecated manner) the table align attribute.

What I find really strange is that IE6 can't use the DOCTYPE of a HTML to act accordingly and not impose a displaying method (CSS2) which wasn't released when HTML 4.01 was implemented! :)

<kbd>--
my $OeufMayo = new PerlMonger::Paris({http => 'paris.mongueurs.net'});</kbd>