Unfortunately, some of us are stuck on Win32; this includes myself. Doubly unfortunately, that means we have to 'upgrade' all the time. The latest down^Wupgrade of Internet Explorer--version 6--gives me really weird alignments. The front page is all right-aligned, and all other pages are centered. I suspect you can see this if you get to a computer with IE6 as well. Please see if you can fix this--it makes the site hard to use, and I suspect many more people will be 'upgrading' soon.

=cut
--Brent Dax
There is no sig.

Replies are listed 'Best First'.
Re: Weirdness under IE6
by Maclir (Curate) on Sep 02, 2001 at 02:30 UTC
    What you are seeing under IE6 is a correct implementation of how attributes - in this case, alignment of the contents of table cell - are inherited from parent tables. So, if a page is built using nested tables, and the outmost table has its cells centered, then unless child tables explicitly set their cell alignment, they will inherit the centered alignment from their parent.

    This is how styles are meant to be implemented under the latest W3C standards. However, there are many browsers that are "broken" to a greater or lesser degree. Netscape 4 browsers are severely broken, IE5 is broken to a lesser degree. From what I understand, IE6 is almost completely compliant to the HTML 4.01 / XHTML 1.0 and CSS 2 standards.

    IE6 will be the standard browser version on Win XP. I personally would have thought that moving to a version of a product that supports current standards is a good thing.

      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>

        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.

      The very day that the Beta of IE 6 came out, the weirdness was noted and tracked down to two things:

      1. Some scattered center tags
      2. Nested tables inheriting the center alignment from their parent table

      We all know what the center tag does, but no one is sure if, as elements, tables are supposed to inherit the alignment from their container.
Re: Weirdness under IE6
by grinder (Bishop) on Sep 02, 2001 at 01:08 UTC

    Mozilla 0.9.2 (or thereabouts) was famous for making unbelievably wide page layouts of the Monastery. This was traced to embedding <hr> elements inside <td> elements. This problem went away the subsequent release.

    Of course, we're not likely to get the same reactivity from Microsoft, so I guess that means we will have to shape the HTML to suit IE6. The thing is though... do you have a test case? Can you come up with a slimmed down HTML page that displays the symptoms? Can you pinpoint the cause?

    --
    g r i n d e r
Re: Weirdness under IE6
by converter (Priest) on Sep 02, 2001 at 07:21 UTC

    Since CSS compliance was mentioned here, if you want to find out what does and doesn't work as advertised as far as CSS in various browsers, the best resource I've found is at: http://richinstyle.com/bugs/table.html

    conv