css validating - color issue

This is a discussion on "css validating - color issue" within the Web Page Design section. This forum, and the thread "css validating - color issue 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 Dec 5th, 2005, 19:38
Up'n'Coming Member
Join Date: Jul 2005
Location: montreal canada
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
css validating - color issue

Hi Peeps,

I`m trying to get a css doc. to validate. I get - warning: you have no color with your background-color. What does this mean? I can post the code if that`ll help...

Reply With Quote

  #2 (permalink)  
Old Dec 5th, 2005, 19:45
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: css validating - color issue

yeah.... post the code
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #3 (permalink)  
Old Dec 5th, 2005, 20:52
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: css validating - color issue

what you supposedly have: .xxx {background-color:;}
what you need: .xxx {background-color:#fff;}

^^ somewhere in your styles.
Reply With Quote
  #4 (permalink)  
Old Dec 5th, 2005, 21:34
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: css validating - color issue

Thats what I thought..... but without seeing the code.... it's hard to tell.

Also, validation sometimes fails with some color names.... ... she may have left the # symbol out.... or something else even.

If we see the code, then we'll know.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #5 (permalink)  
Old Dec 6th, 2005, 01:40
Up'n'Coming Member
Join Date: Jul 2005
Location: montreal canada
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css validating - color issue

FINally. Done teaching for the day. Um, how do I post the style sheet here? Tried pasting- nope. Attach a file- not the right extension. Help!
Reply With Quote
  #6 (permalink)  
Old Dec 6th, 2005, 01:53
Up'n'Coming Member
Join Date: Jul 2005
Location: montreal canada
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css validating - color issue

Nevermind, I`ve got it- (Duh )

Code: Select all
/* CSS Document */
body,
html {
margin:0;
padding:0;
background:#ffcc99;
color:#000000;
font-family: Arial, Helvetica, sans-serif;
font-size: 1em;
}
body {
min-width:750px;
}
#wrap {
background:#fff;
margin:0 auto;
width:750px;
}
#header h1 { 
margin:0;
padding:10px;
background:#fff; 
}
#main h2, #main h3, #main p {
padding:0 10px;
background:#fff;
float:left;
width:500px;
}
#sidebar ul {
margin-bottom:0;
background:#fff;
float:right;
width:240px;
}
#footer p {
padding:5px;
margin:0;
background:#0000cc;
clear:both;
}
#sidebar h3, #sidebar p {
padding:10px 10px 0 0;
background:#ffffff;
}

Last edited by Rob; Dec 6th, 2005 at 07:51.
Reply With Quote
  #7 (permalink)  
Old Dec 6th, 2005, 03:56
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: css validating - color issue

try changing all instances of background:#xxxxxx;

to

background-color:#xxxxxx;
Reply With Quote
  #8 (permalink)  
Old Dec 6th, 2005, 04:18
Up'n'Coming Member
Join Date: Jul 2005
Location: montreal canada
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css validating - color issue

Tried that; same result...
Reply With Quote
  #9 (permalink)  
Old Dec 6th, 2005, 04:19
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css validating - color issue

if you have
.class {
colour: #abc; /* or #aabbcc */
}
You are also suposed to have a background colour (or vice versa) because the client could possibly change the value you haven't set. So if your font colour was say #000 and the client has a default background colour of black, none of your test will show up. causeing obvous problems, by includeing both you make it very unlikley this will happen. However there are times when it gives this error, even tho there is no way that situation could happen. And you can probaly ignore it, as warnings don't count as a failed validation
Reply With Quote
  #10 (permalink)  
Old Dec 6th, 2005, 04:42
Up'n'Coming Member
Join Date: Jul 2005
Location: montreal canada
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css validating - color issue

Thanks herkalees and Phoenix,

I found it rather unclear as to whether the style sheet actually passed validation or not. I have used the xhtml validator, and there it was obvious- red = failed, green = passed. Plus the code for the icon was right there to paste in your code. Hmm. I`ll go investigate some more. Wouldn`t want to make a website that would make herkalees scream! Haha.
Reply With Quote
  #11 (permalink)  
Old Dec 6th, 2005, 05:33
Up'n'Coming Member
Join Date: Jul 2005
Location: montreal canada
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css validating - color issue

Upon closer scrutiny of the validator results, I have come to the conclusion that it actually does validate (yeah!). So, sorry for the trouble. But thanks a lot for the explanation, Phoenix; I get it, and will ignore the warnings. (so there!)

Still think they could put the code for the validation icon there, like they do for xhtml...

Thanks again, guys!
Reply With Quote
  #12 (permalink)  
Old Dec 6th, 2005, 07:42
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: css validating - color issue

Ivyholly.... for future reference, please use this method:
[code]your css/code here[/code]

....whenever posting code.... it's much tidier and saves people scrolling down for ages.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #13 (permalink)  
Old Dec 6th, 2005, 14:53
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: css validating - color issue

Quote:
Originally Posted by ivyholly
Wouldn`t want to make a website that would make herkalees scream! Haha.
I scream for the collective people . Because when I scream about a site, it means that it could be better and more visible to everyone in the world.
And... do I come across as an uptight-standards-accessability-give-no-leeway kind of guy?
...sweet.
To all those who strive for this stuff like I do: Keep up the great work everypersons!
Reply With Quote
  #14 (permalink)  
Old Dec 6th, 2005, 16:05
Up'n'Coming Member
Join Date: Jul 2005
Location: montreal canada
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css validating - color issue

herkalees- I`m working on it- my newly updated site done in validated css and xhtml is becoming 'imminent'. (meaning all will be ready for uploading to the server in a few weeks). Won`t be anything fancy, but this is a big step for me. One does what one can...

Rob- oopsies. Will do. mistake.
Reply With Quote
Reply

Tags
css, validating, color, issue

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
Worth validating with JS as well as php? djeyewater PHP Forum 6 Mar 27th, 2008 13:03
Help validating Oak Web Page Design 11 Feb 5th, 2008 09:55
color: inherit; issue with IE 7 Voodoochilli Web Page Design 3 Oct 15th, 2007 13:00
CSS noob - Help with border color browser issue please!!! Micky-D Web Page Design 4 Oct 14th, 2006 19:58
Validating Issue JRX.Will Web Page Design 1 Mar 14th, 2006 16:41


All times are GMT. The time now is 21:22.


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