Jump to content

Archived

This topic is now archived and is closed to further replies.

TylerL

2 Warnings

Recommended Posts

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...

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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 here
www.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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.