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.
|
|
|
|
|
![]() |
||
css validating - color issue
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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... |
|
|
|
||||
|
Re: css validating - color issue
yeah.... post the code
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
Re: css validating - color issue
what you supposedly have: .xxx {background-color:;}
what you need: .xxx {background-color:#fff;} ^^ somewhere in your styles. |
|
||||
|
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
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
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!
|
|
|||
|
Re: css validating - color issue
Nevermind, I`ve got it- (Duh
Last edited by Rob; Dec 6th, 2005 at 07:51. |
|
||||
|
Re: css validating - color issue
try changing all instances of background:#xxxxxx;
to background-color:#xxxxxx; |
|
|||
|
Re: css validating - color issue
Tried that; same result...
![]() |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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! |
|
||||
|
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
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
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. |
![]() |
| Tags |
| css, validating, color, issue |
| Thread Tools | |
|
|
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 |