W3C home > Mailing lists > Public > www-validator@w3.org > January 2011

Re: Valid icon code for xhtml

From: David Dorward <david@dorward.me.uk>
Date: Thu, 6 Jan 2011 15:42:17 +0000
Cc: <www-validator@w3.org>
Message-Id: <8894A4B5-074C-4BE5-8159-8DA1FF02844B@dorward.me.uk>
To: Linda Seger <lindaseger@earthlink.net>
On 6 Jan 2011, at 14:47, Linda Seger wrote:
> Love the validator.  However, I wonder each time I use it why the validation
> icon code gives the width and height of the icon without "px."
> 
> height="31" width="88"
> 
> Shouldn't that be height="31px" width="88px"?

No. The height and width attributes take either a pixel value as an integer or a percentage. They do *not* take CSS lengths. Specifying px is an error (although not a validity error as the constraint is not expressed in the DTD).


-- 
David Dorward
http://dorward.me.uk
Received on Thursday, 6 January 2011 15:43:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:45 GMT