W3C home > Mailing lists > Public > public-html-comments@w3.org > November 2011

Re: Image width specification in html5

From: T.J. Crowder <tj@crowdersoftware.com>
Date: Mon, 21 Nov 2011 12:07:52 +0000
Message-ID: <CAH65x-xXmgEieq4HK-c1QH+G=mqA5MqM3yCZDzJmJYZrGzksAQ@mail.gmail.com>
To: davidms@uwclub.net
Cc: public-html-comments@w3.org
On 21 November 2011 11:54, David Swindlehurst <davidms@uwclub.net> wrote:

> Presumably the intention is that the % attribute is replaceable by a CSS3
> layout command, but I cannot find a way to make a CSS structure to achieve
> this.
>

Wouldn't this CSS do it?

#photos > div.layout2 > img {
    width: 50%;
}

...or put a class on the `img` elements to be targeted directly if you
prefer.

Or something along those lines, anyway. This does seem like something to be
done with CSS in your case.

(Also: Note that the "pgs11" image -- the last one -- says 30% rather than
50%.)
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com
Received on Monday, 21 November 2011 12:08:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 21 November 2011 12:08:44 GMT