Quote:
quote:
You can specify just about any object's width and height to percentages and it will size accordingly. Try setting the picture to 100% width instead of a pixel value. No gaurantees regarding browser compatibility however.
|
That method works much better if you do it with CSS and set the height attribute to 'auto' which should preserve the aspect ratio. In my experience setting only the width attribute to a percentage, or even to pixels caused some browsers to choke. Well its a double edged sword.. the CSS should work on all the new browsers and most, if not all, flavors of IE.. but won't work on the older ones. This is also standards compliant as the old width, height attributes on their own are deprecated. e.g. width=100 height=20
<img src='some_picture' style='width: 100%; height: auto;' />
: )
Rich
:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::