Originally Posted by welshsteve
<img src="image.gif" style="width:100%;height:100%;" />
<img src="image.gif" width="100%" height="100%" alt="
will work equally well - if you want to fill the space completely (which could possibly emtail distorting the image).
However, I think the OP wanted the image to 'scale', which I take to mean scales up or down in ratio, so that it fits neatly within the available space.
A possible solution is discussed here
If the images all share the same aspect ration (e.g. width>height or height<width), then you can actually do the job by declaring only the longer dimension.
If the images are all 'landscape' ratio (width>height_
" width="100% alt="
If the images are all 'portrait' ratio (height>width)
" height="100% alt="
The undeclared dimension should scale up/down accordingly to maintain the image's correct ratio.