Re: Image width specification in html5

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 UTC