Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Re: Weirdness under IE6

by OeufMayo (Curate)
on Sep 02, 2001 at 05:16 UTC ( #109692=note: print w/replies, xml ) Need Help??

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! :)

my $OeufMayo = new PerlMonger::Paris({http => ''});</kbd>

Replies are listed 'Best First'.
Re: Re: Re: Weirdness under IE6
by Maclir (Curate) on Sep 02, 2001 at 06:17 UTC

    The actual CSS property is "text-align", with the default value in CSS(x) being "inherit". I believe that in the "pre-CSS" days, the default value for the (now deprecated) HTML align attribute was "left".

    I suspect that the layout engine designers for IE6 took a few short cuts, and did not look at the DOCTYPE value (mind you - how many web designers put a proper dtd line as the first lie of their HTML, before the >head< tag?) and chose the default bahaviour accordingly?

    I guess this is a problem us web developers will have to live with - the browser developers giving us fluff rather than complying with standards. I mean, HTML 4.01 and CSS 1 have been with us for a few years now.

    I guess the only way we can handle things is where layout is important, specify things explicitly - don't rely on someone else assuming the correct default bahaviour.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://109692]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2018-03-19 01:23 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (231 votes). Check out past polls.