Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Color warnings in my css any idea how to fix?
Old 08-23-2009, 03:02 AM Color warnings in my css any idea how to fix?
Snot's Avatar
Super Talker

Posts: 132
Name: Chase
Trades: 0
I am getting some warnings on my css code about font color and background color being the same.

Quote:
Same colors for color and background-color in two contexts #right and h2.small
I am using the same color text as my background but in completely different parts of the page. The only place on the page that is using #ccc font color is in the header and has a black tile repeating background and is also an image between that and the black tile background. The the content box on my page has #ccc background and black text but its in different parts of the page.

Any idea what I need to change to stop the warning?

The h1 and h2 small are whats getting the error but you can see there is no background color? Only an image and on top of that another image so i'm confused as to way its giving me problems.

HTML Code:
body {
height:100%;
background: url(/assets/images/background.png) repeat;
font-family: "Times New Roman", serif, sans-serif, Arial;}
a:link {color: #000000; text-decoration: none;}
a:visited {text-decoration: none; color: #000000;}
a:hover {text-decoration: none;    color: #000000;}
a:active {text-decoration: none; color: #000000;}

#header { background:url(/assets/images/header.png) no-repeat; height: 174px; width: 650px; margin: 0 auto; margin-top: 0px; margin-bottom: 0px;
}
h1.small {
font-family: "Times New Roman", serif, sans-serif, Arial;
font-size: 40px;
color:#cccccc;
text-transform:capitalize;
text-align:center;
padding-top: 80px;
line-height: 20%
}
h2.small {
font-family: "Times New Roman", serif, sans-serif, Arial;
font-size:14px;
color:#cccccc;
text-align: center;
}
link
__________________

Please login or register to view this content. Registration is FREE
Snot is offline
Reply With Quote
View Public Profile Visit Snot's homepage!
 
 
Register now for full access!
Old 08-23-2009, 04:57 AM Re: Color warnings in my css any idea how to fix?
Colin's Avatar
Average Talker

Posts: 27
Name: Colin Smiley
Trades: 0
I'm assuming the warnings are from W3C's validator? If so, it's not giving any warnings when I run it using the link you posted.
Colin is offline
Reply With Quote
View Public Profile
 
Old 08-23-2009, 05:13 AM Re: Color warnings in my css any idea how to fix?
Snot's Avatar
Super Talker

Posts: 132
Name: Chase
Trades: 0
Thanks for the reply I think I fixed it then.... Not sure what I did though lol.
__________________

Please login or register to view this content. Registration is FREE
Snot is offline
Reply With Quote
View Public Profile Visit Snot's homepage!
 
Old 08-23-2009, 09:07 AM Re: Color warnings in my css any idea how to fix?
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Keep in mind that validation is a tool, not an end in and of itself. If you look at your site and can say that someone who's color blind or has some vision problems can read the text, you're OK. That's why that CSS color warning was put in the check, same as alt tags on images being in the HTML validator. They're smart things to check, but validators don't substitute for humans being able to see if the site works if images don't load, javascript is disabled, etc.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Reply     « Reply to Color warnings in my css any idea how to fix?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.66654 seconds with 12 queries