Home | All Questions | alt.html FAQ >

Can I use percents to resize an image?

Beware: Resizing images in a browser using the width and height attributes produces inferior images - browsers are not much good scaling images like a graphics package. It is much better to resize your image using descent image processing software.

So the bottom line is that if you apply a percentage-width to your image (which would be the the correct fix for your problem) then you will break that image for Netscape users.

You can detect a person's resolution through Javascript, and dynamically insert the width. (Do not code height and your image will be proportionate in all resolutions.)

But..... have you thought about the difference in display in a 640 width as opposed to a 1200-width screen?

Do remember to allow for scrollbar space, especially in NN.

Recommended Resources


Related Questions