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


in reply to (Ovid) Re: Internet Explorer 6 issues
in thread Internet Explorer 6 issues

Sometimes it centers the text and other times it right-justifies it. I've resolved the issue by telling our users that IE6 should be considered beta quality and therefore we cannot support it.

Actually, as has been discussed previously here (notably in Everything is centered and Weirdness under IE6), elements in IE6 inherit attributes from their parents. So nested tables, for example, will inherit their alignment from the outermost one unless specified otherwise.

"One word of warning: if you meet a bunch of Perl programmers on the bus or something, don't look them in the eye. They've been known to try to convert the young into Perl monks." - Frank Willison
  • Comment on Re: (Ovid) Re: Internet Explorer 6 issues

Replies are listed 'Best First'.
Re: Re: (Ovid) Re: Internet Explorer 6 issues
by John M. Dlugosz (Monsignor) on Sep 07, 2001 at 02:45 UTC
    elements in IE6 inherit attributes from their parents

    Isn't that the way it's supposed to be? Or is that only the case for some attributes (e.g. colors)? I don't recall a some when reading CSS documentation.

    Update:W3C says Some style properties are not inherited from the parent element to the child element... but it also says that text-align is inherited. It mentions elsewhere that margin stuff is technically not inherited, but positioning is relative to the parent so it gives a similar effect.

    —John

      Yes indeedy. So it's not a bug in IE6: it's supposed to be rendered this way.

      The fact that browsers didn't do so previously is just something that most people took advantage of (by leaving out explicit aligns and whatnot).

      "One word of warning: if you meet a bunch of Perl programmers on the bus or something, don't look them in the eye. They've been known to try to convert the young into Perl monks." - Frank Willison
        I wonder why Opera users hadn't reported the problem with PM, then. I've found really picky CSS typos that Opera catches that IE and Netscape don't.