Jump to content

2 Warnings


TylerL

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

  • 1 month later...
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.