TylerL Posted March 10, 2006 Share Posted March 10, 2006 So I tried to validate my CSS, and it worked out fine but I get two warnings and I would really rather have a clean slate then have 2 warnings to worry about screwing up somewhere...Heres the info:[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Line : 4 (Level : 1) You have no color with your background-color : body Line : 10 (Level : 1) You have no color with your background-color : .main [/quote][code]body { margin-top: 0px; padding: 0px; background-color: #C39300; text-align: center; height: 100%; }.main { background-color: #B2E7FF; height: 100%; width: 860px; }.left { height: 100%; background-image: url(left.gif); width: 32px; }.right { height: 100%; background-image: url(right.gif); width: 32px; }div#cen { text-align: left; width: 860px; margin: 0 auto; height: 100%; }[/code][a href=\"http://www.tylerleisher.com/test/\" target=\"_blank\"]http://www.tylerleisher.com/test/[/a] is my site.Any ideas as to why it would be giving me these two errors? The color shows up and works fine... Quote Link to comment Share on other sites More sharing options...
AndyB Posted March 10, 2006 Share Posted March 10, 2006 Like the warnings say "you have no color defined". To avoid the warnings, specify a color (for text!) to go along with the background color - even if you don't plan on having any text there. Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted April 20, 2006 Share Posted April 20, 2006 also it isn't necessary those warnings are simply letting you know, if it says congratulations then you are fine, I am obsessed with clean coding, everything I do has to be 100% perfect, if it takes forever to fix, and from my perspective this isn't really a problem. If there are any problems that you need to worry about it will say you did not pass. If you want proof, everyone knows this site go herewww.csszengarden.com the ultimate examples of css, now look at there source code of there main and all there styles, they ALL have quite a bit of warnings. Quote Link to comment Share on other sites More sharing options...
moberemk Posted April 20, 2006 Share Posted April 20, 2006 I would worry more about the errors that you are getting. You seem to be using properties that don't exist, like the scrollbar properties. Worry about those first. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.