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

Posted by Edwin van der Vaart on 09/19/05 22:41

Alan J. Flavell wrote:
> 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.
With other words.
You always specify a background colour with a font colour for e.g.
headlines, even when you have already specified a font- and a background
colour for the <body>.

I normally use to know. You can use a transparent background for e.g.
headlines, when you already have specified a background colour for the
<body>.
--
Edwin van der Vaart
http://www.semi-conductor.nl/ Links to Semiconductors sites
http://www.evandervaart.nl/ Persoonlijke website
Explicitly no permission given to Forum4Designers to duplicate this post.

 

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

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