Click to See Complete Forum and Search --> : W3 throws an error when I use pt (points) as a unit of font size.


multimediocrity
06-04-2009, 02:24 PM
I have a CSS sheet where I write this:

.footer {position:relative; border-top: solid 1px #AAAAAA; margin-top: 50px; padding: 20px; font-size: 10pt; font-family: arial, 'helvetica', sans serif, sans; color: #999999; clear: both;}

When I validate my CSS at W3.org, I get an error:

Parse Error .10pt {font-size: 10pt;}

Why, and how do I fix it? Is pt not an appropriate unit? I tried using a space (10 pt), and that did not work either. Any thoughts?

Thanks,
- Multimediocrity

tracknut
06-04-2009, 02:43 PM
Do you have a class called "10pt" in that style sheet somewhere? I don't think the .footer style is what's being flagged as an error. Perhaps post a link to the site?

Dave

multimediocrity
06-04-2009, 02:51 PM
OOOOOH! I do! Thanks! That should solve that problem. :)