Validating my css (http://jigsaw.w3.org/css-validator/validator-uri.html), I
get this msg:
************************************************************************
a.. Line: 14 Context : div#coolAnchor .margins
Invalid number : marginonly 0 can be a length. You must put an unit after
your number : 0 0 0 20
************************************************************************
Here is the line in question:
div#coolAnchor .margins{margin:0px 0px 0px 20px;}
Verifying my syntax with this page,
http://www.w3.org/TR/REC-CSS2/box.html#propdef-margin I see nothing wrong...
So, what's wrong?
TIA!
Could it be that you were validating a different document to the one you
were checking? The error did state "your number : 0 0 0 20"
NB, the units for 0px are optional:
http://www.w3.org/TR/REC-CSS2/syndata.html#length-units
"Fierce Networks" <mar...@fierce-networks.com> wrote...
> Validating my css, I get this msg:
Check out line 14...
BTW, you'll see that I have MANY errors in my style sheet. I have been using
Eric Meyer on CSS, (Eric Meyer - http://www.ericmeyeroncss.com/) as my guide
<I'm a 1 year old CSS newbie>, so this is my real first attempt @ using css
on a professional site.
Thanks
"Rowland Shaw" <spamf...@anotherpointless.org> wrote in message
news:OEvZ6PxtCHA.2556@TK2MSFTNGP10...
Line 17 is:
width:250;
and not
width:250in; /* or whatever the correct units are */
Line 26 is:
margin:10px 0 10px -3;
and not
margin:10px 0 10px -3in; /* or whatever the correct units are */
Etc.
"Fierce Networks" <mar...@fierce-networks.com> wrote...
> Strange... Yes, it was the doc I intended to validate:
>
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.classicpar
> tyrentals.com%2Fstyles.css&warning=1&profile=css2
>
> Check out line 14...
>
> BTW, you'll see that I have MANY errors in my style sheet. I have been
using
> Eric Meyer on CSS, (Eric Meyer - http://www.ericmeyeroncss.com/) as my
guide
> <I'm a 1 year old CSS newbie>, so this is my real first attempt @ using
css
> on a professional site.
>
>