W3C home > Mailing lists > Public > www-validator-css@w3.org > October 2002

Re: font-sizeParse Error - :

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 24 Oct 2002 12:02:15 +0200
To: sutter@ecology.at
Cc: www-validator-css@w3.org
Message-ID: <3db9c498.154070020@smtp.bjoern.hoehrmann.de>

* sutter@ecology.at wrote:
>the css-validator givs me the error:
>
>    * Line: 11 Context : body  
>
>      Invalid number : font-sizeParse Error - :
>
>In my document I added the font-size by php: i.e.
>body {font-size:<? echo $font_size; ?>}
>
>when the server parse the document it becomes: i.e.
>body {font-size:small}
>
>so the browser gets a document like:
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
><html>
><head>
><title>test</title>
><meta name="description" content="test">
><style type="text/css">
> <!--
>body {font-size:small}
> -->
></style>
></head>
><body>
></body> 
>
>what is wrong?
>
>example: http://www.sisa.at/index.htm

What the CSS Validator gets is e.g.

  td {font-size: ;}
  p {font-size: ;}

Seems like your PHP script produces different output for the Validator.
Received on Thursday, 24 October 2002 06:02:08 GMT

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