Don't sweat the questions as they're good ones.

The warnings about colors there are simply warnings as you already know.
They're simply saying, 'hey, you're only setting {colour/background 
colour}. If you
inhereit the {background colour/colour} from an ancestor and it's the 
SAME colour,
or simply a hideously contrasting one, things will go snafu.

So it's just a way of getting you to think about your design scheme.

The selectors you mention are different:

      div#summary p

      #summary p

      p#summary


The first is: a p within a div with the id of summary.
The second is: a p within anything with an id of summary.
The last is any p with an id of summary.

Since both p and div are block level, I leave it up to you to think about
why Eric Meyer wouldn't bother with an extraneous div tag.

-Michael

>From: Trish Meyer <[EMAIL PROTECTED]>
>Subject: [css-d]  background color warnings
>To: css-d@lists.evolt.org
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset="us-ascii" ; format="flowed"
>
>
>I get the following warningsa about "background color":
>
>       *       Line : 42 (Level : 1) You have no color with your 
>background-color : div#utilnav
>       *       Line : 78 (Level : 1) You have no color with your 
>background-color : div#sidebar
>       *       Line : 92 (Level : 1) You have no background-color 
>with your color : #profile
>       *       Line : 92 (Level : 1) You have no background-color 
>with your color : #profile
>       *       Line : 161 (Level : 1) You have no background-color 
>with your color : a:link
>       *       Line : 165 (Level : 1) You have no background-color 
>with your color : a:visited
>       *       Line : 169 (Level : 1) You have no background-color 
>with your color : a:hover
>
>etc etc etc etc...it goes on...
>
>Am I doing something wrong in the CSS that can be easily fixed, or do 
>I need to specify the background color explicitly in each style 
>mentioned?
>
>The CSS is at http://www.wildscaping.com/stylesheets/ws_stylesheet3.css
>
>---
>Also, is there any difference between
>
>      div#summary p
>
>      #summary p
>
>      p#summary
>
>I noticed Eric Meyer was using the 3rd option (p#summary) in a 
>tutorial, and I'd never seen it done this way.
>  
>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to