> > Subject: [css-d] Can images be dynamically resized proportionally > > with minand max sizes? > > > > > > Is there any way, using css, to resize both the height and width > > of an HTML > > element like an image to the same percentage based on the width of the > > browser window? > > > > Ideally, I'd like to give a minimum and maximum size (height and width), > > too. > > > > In other words, I want to make sure my image is displayed at a > > 50% width and > > the height is adjusted proportionally so the image never looks > > stretched in > > one way and not the other.
Specify only one of with or height then and the browser should calculate the other domension. I've yet to see a browser which doesn't maintain proportionality when only one scaled dimension is supplied. -- Richard Grevers, New Plymouth, New Zealand Hat 1: Development Engineer, Webfarm Ltd. Hat 2: Dramatic Design www.dramatic.co.nz ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
