On Thu, 25 Sep 2003 12:40:52 +0100, "Andrew Tang"
<Andy_Tang2k@hotmail.com> wrote:
[color=blue]
>Hi, I need some help with understanding this piece of css.
>
><u>This is a <a href="#" style="text-decoration:none;">hyperlink</a> with
>surrounding underlining</u>
>
>From what I understand of css, the styling in <a> should override its
>parent. But it doesnt seem to work in this case, the whole sentence is still
>underlined even though I have specifically specified no text-decoration. I'm
>not saying its wrong but I really cant get my head around to why this is -
>is this a case exception?
>
>Btw, this only happens with Gekko (Mozilla) and Opera which follows the W3c
>recommednation properly. IE6 seems to render it as I would have expected
>(with hyperlinks anyway).[/color]
The effect of switching underlining (or anything else) on in HTML and
off in CSS is AFAIK undefined, and consequently browser-dependent. If
you want consistency, use CSS throughout and don't use the HTML <U>
element.
--
Stephen Poley
http://www.xs4all.nl/~sbpoley/webmatters/