I have an HTML question that I'm not sure can be solved. I want to
restrict the maximum size of an inline image.
For example, I can force the image to be 200x200 if I do this:
<img src=blah.gif width=200 height=200>
But, that messes up the aspect ratio, and could size the image larger than
it's original size.
What I want is a way to size an image such that it's aspect ratio is
preserved and the image is less than the given size (let's say 200x200 for
now).
I've tried placing the image in a table cell, and setting the table cell
size to 200x200, but that doesn't work as the image displays in full size
(stretching the table cell beyond that I specified)
Yes, I know I can do this by manually resizing the image, or fetching the
dimensions of the image and calculating a size myself. But, I am
specifically looking for a way to do it with an inlime image without
fetching it first.
Thanks
-----------------------------------------------------------
Posted using QuadSucker/News, http://www.quadsucker.com
... the ultimate tool for newsgroup downloading!
-----------------------------------------------------------