Re: [css-d] background color warnings

2005-10-30 Thread Michael Nixon
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/


Re: [css-d] background color warnings

2005-10-30 Thread Richard Grevers
On 10/30/05, Trish Meyer [EMAIL PROTECTED] wrote:

 Also, is there any difference between

   div#summary p

   #summary p

   p#summary

They select different things:
The first selects any P element which is a descendant of a div with an
id of 'summary'
The second removes the restriction on the container being a div - if
you had td id=summary it would also work.

The third selects a single paragraph which itself has an id of
summary and is not interchangable with the first two.
--
Richard Grevers
New Plymouth, New Zealand
Orphan Gmail invites free to good homes.
__
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/


Re: [css-d] background color warnings

2005-10-29 Thread Vicki Stebbins
Hi Trish,

I posted the same last week, it seems to have recently started doing this.

Here's the replies I got: 
http://archivist.incutio.com/viewlist/css-discuss/?search=CSS+Validation
subject CSS Validation.

I took the advice that it was only a 'hint' to check your code and if it's 
okay then ignore the warnings.

At the moment I need to put into writing a statement in the 
estimate/contract I do for clients to cover if they find the validation 
service and think their site is not working properly... a couple of other 
people would like a copy and then they may come up with a bit more... let 
me know if you want it too.

Regards

Vicki


At 01:54 PM 30/10/2005, Trish Meyer wrote:
Sorry if these are newbie questions...

After validating the CSS on a site I did
http://www.wildscaping.com/

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.

thanks,
Trish


--


___
\ Trish  Chris Meyer/CyberMotion: Motion Graphics Design  Effects
   \ recent projects  clients: http://www.cybmotion.com/projects
\ books, video,  articles:  http://www.cybmotion.com/sharing
 \ music (including Alias Zone):  http://www.cybmotion.com/music
  \__
__
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/

__
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/