css validation warnings re. color

This is a discussion on "css validation warnings re. color" within the Web Page Design section. This forum, and the thread "css validation warnings re. color are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 29th, 2006, 11:10
Up'n'Coming Member
Join Date: Mar 2006
Location: UK
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
css validation warnings re. color

On validating my CSS files I get tons of WARNINGS!
"No background-color with your color" and "No color with your background-color".

Do I really have to specify both of these properties for every element?
Reply With Quote

  #2 (permalink)  
Old Oct 29th, 2006, 14:27
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: css validation warnings re. color

You do if you want to use the W3C validated logo on your pages.

I know it can be a bit of a trial but it's basically to make sure you haven't forgot something.
Reply With Quote
  #3 (permalink)  
Old Oct 29th, 2006, 15:48
Up'n'Coming Member
Join Date: Mar 2006
Location: UK
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css validation warnings re. color

Hmmm...can I be bothered? Sounds like its not absolutely necessary.
Thanks Geoff.
Reply With Quote
  #4 (permalink)  
Old Oct 30th, 2006, 13:18
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,765
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: css validation warnings re. color

useless warnings that mean nothing.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #5 (permalink)  
Old Oct 30th, 2006, 17:07
Up'n'Coming Member
Join Date: Mar 2006
Location: UK
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css validation warnings re. color

well I'm glad you said that!I guess it won't affect my pages' accessibility then?
Reply With Quote
  #6 (permalink)  
Old Oct 30th, 2006, 18:15
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: css validation warnings re. color

It won't effect your pages accessibility necessarily, but...

Remember that these colour attributes are inherited so if you only set a background colour, for example, at the <body> level, then that will be the background colour for everything.

Now at some point on your page, you may choose a foreground colour, that when taken with that background colour, do not meet accessibility requirements in terms of colour contrast etc.

Personally, I think that is the main reason for always specifying both as it ensures, as I said previously, that you haven't missed anything.
Reply With Quote
Reply

Tags
background color, color

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Color in browsers wireman54301 Web Page Design 5 Nov 25th, 2006 01:08
link color somsahi Web Page Design 3 Aug 25th, 2006 17:02
background color kaz Web Page Design 4 Aug 4th, 2005 17:28
background color kaz Web Page Design 1 Apr 20th, 2005 11:43
table color? Monie Classic ASP 16 Oct 12th, 2004 02:48


All times are GMT. The time now is 03:18.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43