By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,723 Members | 1,665 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,723 IT Pros & Developers. It's quick & easy.

Image aspect preservation

P: n/a
Is there any way to specify a fixed width to apply to a class of images, and
have the heights adjust automatically to preserve the aspect? Obviously this
meant to be a quick-and-dirty alternative to sizing a collection of images
individually.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.

Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Harlan Messinger wrote:
Is there any way to specify a fixed width to apply to a class of
images, and have the heights adjust automatically to preserve the
aspect? Obviously this meant to be a quick-and-dirty alternative to
sizing a collection of images individually.


Giving either one of the dimensions will prompt the browser to scale the
other in IE6, Opera 7.11 Moz 1.3b and N 7.1 - please note that I haven't
tested this in other browsers.

--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

Jul 20 '05 #2

P: n/a

"PeterMcC" <pe***@mccourt.org.uk> wrote in message
news:Nk******************@wards.force9.net...
Harlan Messinger wrote:
Is there any way to specify a fixed width to apply to a class of
images, and have the heights adjust automatically to preserve the
aspect? Obviously this meant to be a quick-and-dirty alternative to
sizing a collection of images individually.


Giving either one of the dimensions will prompt the browser to scale the
other in IE6, Opera 7.11 Moz 1.3b and N 7.1 - please note that I haven't
tested this in other browsers.


Oh. Shows you how long it's been since I tried it. Thanks.

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.