scotto Posted February 27, 2006 Share Posted February 27, 2006 I have the following code in style sheet:table { background-color: #ffffcc;}When I run W3C validation, I get the following warning:Line : 44 (Level : 1) You have no color with your background-color : tableWhat does this warning mean?ScottO Link to comment Share on other sites More sharing options...
Jonas Posted February 27, 2006 Share Posted February 27, 2006 It means you should define a color for your text as well to go with your background color, despite it being the same color as the parent element (body?). This is a reminder for you to specify color so that you don't get lousy contrasts if the reader has a default color to fall back on. Link to comment Share on other sites More sharing options...
scotto Posted February 27, 2006 Author Share Posted February 27, 2006 Ah, that makes sense.Thank you!ScottO Link to comment Share on other sites More sharing options...
Jonas Posted February 27, 2006 Share Posted February 27, 2006 No problem, glad to be of help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now