J
Jim Royal
I'm rewriting the code on my site for table-less CSS layout. I'm proud
to say that both my page template HTML and CSS validates. However, I
receive the following warning on the CSS:
You have no color with your background-color : body
You have no background-color with your color : h1, h2, p, li, etc...
I thought the purpose of cascading style sheets was that they cascade
-- that if you set the background-color in a parent selector, all child
selectors inherit it. So why the warning? Is there really any purpose
in explicitly defining the background for all my other selectors as
transparent?
to say that both my page template HTML and CSS validates. However, I
receive the following warning on the CSS:
You have no color with your background-color : body
You have no background-color with your color : h1, h2, p, li, etc...
I thought the purpose of cascading style sheets was that they cascade
-- that if you set the background-color in a parent selector, all child
selectors inherit it. So why the warning? Is there really any purpose
in explicitly defining the background for all my other selectors as
transparent?