You are here: Re: underlining <sup> « HTML « IT news, forums, messages
Re: underlining <sup>

Posted by Neredbojias on 11/02/05 23:14

With neither quill nor qualm, bernhard quothed:

> Hey,
>
> I try to to underline a <h4> header, which contains also superscripted
> text:
> <h4>product-name<sup>&reg;</sup></h4>
> with this css:
> h4 { text-decoration: underline; }
>
> This works fine in Firefox, but in IE and Opera, the text decoration
> gets
> also superscripted, which looks very odd. For a better appearance, I
> tried
> to switch off underlining for the superscripted portion and added to
> the css
> h4 sup { text-decoration: none; }
>
> This does not help, the superscripted portion appears still underlined
> in
> all 3 browsers.
>
> Any idea?

Instead of <sup>, span the &reg; and use line-height and vertical-align
with font-size-adjust. (Untried regarding underline, though.)

--
Neredbojias
Contrary to popular belief, it is believable.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация