W3C home > Mailing lists > Public > www-validator-css@w3.org > December 2007

Re: font courier is not a font-size value

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Wed, 26 Dec 2007 10:55:49 +0200
Message-ID: <001c01c8479d$1d723280$0500000a@DOCENDO>
To: "Charles Sharp" <csharp@succeed.net>, <www-validator-css@w3.org>

Charles Sharp wrote:

> I get the following error, why?
>
> 471 .daynumA1 Value Error : font
> <http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font>  courier is
> not a font-size value : courier

You probably have font: courier on line 471 of your style sheet, and 
this is incorrect, since the first part of the value should specify the 
value for the "sub-property" font-size, and courier is not an acceptable 
value for font-size.

> .daynumA1 {
>
> position : absolute;
>
> top : 790px;
>
> left : 437px;
>
> width : 20px;
>
> color : black;
>
> font-size : 10pt;
>
> text-align : center;
>
> background : white;
>
> border : 1px solid black;
>
> }

The W3C CSS Validator does not give any error message or warning about 
that style sheet. This is probably from a different part of the style 
sheet than the part containing like 471, or from a different style 
sheet.

So what's your real style sheet? URL, please.

Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/ 
Received on Wednesday, 26 December 2007 08:55:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:19 GMT