|
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]
|