devpwnt
06-26-2006, 06:27 PM
I'm working on a photoblog and am having difficulties with scaling the images.
I'm trying to make the images fit in a certain width (90%) (but not take up this space, I'm using max-width). But the problem arises that the height does not scale to fit it, so it appears stretched out. How can I scale the height as the width goes, to make the image look natural?
Thanks.
I'm trying to make the images fit in a certain width (90%) (but not take up this space, I'm using max-width). But the problem arises that the height does not scale to fit it, so it appears stretched out. How can I scale the height as the width goes, to make the image look natural?
Thanks.