W3C home > Mailing lists > Public > www-validator@w3.org > June 2013

Re: image width in percent

From: David Dorward <david@dorward.me.uk>
Date: Wed, 05 Jun 2013 14:16:51 +0100
To: bbecula@mac.hush.com
Cc: www-validator@w3.org
Message-ID: <CC2D348E-D239-41BB-BA69-FC15C62EA793@dorward.me.uk>
On 5 Jun 2013, at 8:15, bbecula@mac.hush.com wrote:

> I have images which are currently sized … with width in percent. 
> This means that they scale nicely …
> The validator insists that only 'px' should be used for widths,
>
> What to do?

First, check [the 
spec](http://www.w3.org/TR/html5/embedded-content-0.html#attr-dim-width) 
to confirm that the validator is right (which it is, for HTML 5):

>> Note: The dimension attributes are not intended to be used to stretch 
>> the image.

Then use CSS for any presentation you wish to apply to your document.

-- 
David Dorward
http://dorward.co.uk/
Received on Wednesday, 5 June 2013 13:17:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:08 UTC