Adjusting image size as % of screen size

H

Huck Rorick

Is there a way to have a jpeg image display at the size of the available
screen? That is, if a visitor to the website has 768x1024 monitor the jpeg
will display larger than if the visitor has a 480x640 monitor. The size of
the image would also be affected by the space left by the browser (deducting
its' menus, etc.).



When I tried setting picture properties and specifying size as a percent, I
got strange results. I specified size as 50% for width and height. When I
viewed it in the browser, it looked like it displayed the image using 50% of
the available screen space in each direction without regard to proportions,
so the image was distorted. What is going on here? Is there any way around
this so that it maintains the proportions of the image?



Thanks,



Huck
 
T

Thomas A. Rowe

50% would be 1/2 of the available browser's window opening space and yes, the image will be
distorted.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
H

Huck

Is there any way to get an un-distorted image (maintaining width/height
ratio) that fills the available screen?

Huck
 
T

Trevor Lawrence

Huck said:
Is there any way to get an un-distorted image (maintaining width/height
ratio) that fills the available screen?

Just a thought.

If you adjust one only of width and height, the other will stay in the
correct proportion. At least it has for me. I have done this from time to
time when I can't be bothered to calculate both dimensions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top