Jump to content


2 Warnings

  • Please log in to reply
3 replies to this topic

#1 TylerL

  • Members
  • PipPip
  • Member
  • 12 posts

Posted 10 March 2006 - 07:54 PM

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

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%;

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

#2 AndyB

  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 10 March 2006 - 08:22 PM

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.
Legend has it that reading the manual never killed anyone.
My site

#3 Ninjakreborn

  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 20 April 2006 - 05:06 PM

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.


Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.

#4 moberemk

  • Members
  • PipPipPip
  • Advanced Member
  • 695 posts

Posted 20 April 2006 - 06:46 PM

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.
Disclaimer: No matter how harsh I may be, I'm always IMO only.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users