You are here: Re: font color not renedered in table « HTML « IT news, forums, messages
Re: font color not renedered in table

Posted by Jukka K. Korpela on 11/04/07 07:15

Scripsit Bone Ur:

> From what I see, the content is within links - which will inherit the
> link color.

There has been a lot of disinformation in the thread (and, someone might
add, the original question called it, e.g. by its failure to supply a URL).
It would be pointless to correct it all, but I'll take a bite on this one,
since it was probably an unintentional mistake, and a common one.

Links never inherit colors, in practice. In theory they could, but in
reality, in any browsing situation where different colors are available at
all, the browser's style sheet sets colors for links. Author and user style
sheets may override such settings, but in any case, links have a color (or
colors, different colors for a link in different states) set for them.

And an element never inherits a property value if it has a value assigned
for that property. People just fail to understand what inheritance means.
This is part of the general failure to understand the "C" in "CSS".

So if some text is within a link, it _gets_ a link color. If a link has an
inner element, say <a href="...">...<span>...</span>...</a>, then the
_inner_ element may inherit the link color (and will, unless some style
sheet sets color for it).

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

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

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