Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- fixed image size
February 12, 2007, 6:53 pm
rate this thread
- Jukka K. Korpela
February 13, 2007, 5:47 am
Re: fixed image size
You should fix the markup then (at least by adding an alt attribute).
Although you can do that as others have replied, using the max-width
propertym though not for IE 6 or older, it's almost always a wrong idea to
do such things via markup or style sheets. The image should be converted to
a suitable size on the server or before it is uploaded onto the server, for
two basic reasons:
1) More efficient - it's foolish to transfer a large image and then have it
shrinked, losing much of its quality that required so many bytes.
2) Better quality - browsers aren't really good image processing software.
Jukka K. Korpela ("Yucca")