You are here: Re: Css Validator Kaflooey? « HTML « IT news, forums, messages
Re: Css Validator Kaflooey?

Posted by Alan J. Flavell on 09/18/05 00:47

On Sat, 17 Sep 2005, Edwin van der Vaart wrote:

> I don't know. The validator even knacks "You have no background-color with
> your color #title h1 {color: #990000; background: transparent;}.

Your CSS is unwise. For safe cascading, one should specify a definite
colour for both properties - or for neither.

Specifying background: transparent is, logically, only safe in conjunction
with specifying color: inherit.

Whether this is the motivation for the CSS checker's report, I don't know
("transparent" is the default anyway), but it's good advice nevertheless.
That's assuming you care about cascading with some other stylesheet (e.g
belonging to the user) that's not under your control. You /should/ care,
but it's your choice really.

 

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

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