resize images to 100% width, keep height in proportion?
Posted on 2006-11-05
I'm trying to show an image or a swf (depending on whether the user has flash) inside a browser window that has been already resized to full screen width and height.
The image & swf are 2:1 proportions, and I need to find a way to display them at 100% width, and to set the height to half of the height.
I have some of the pieces, but can't connect them...
ie <img src="images/abc.jpg" width="imgWidth" height="imgHeight"> - how do I write the width & height variables here?