richcleverley
MIS
Hi,
I resize some images on a page using css(can't do it using normal html as the page is rendered using an encoded php script and I can only change the css for the template - images are called in the template using tags <%picture%>.
So, I resize using this css
Fine if all the images have the same dimensions. But, some are taller than others so when they resize they appear squashed.
Is there anyway way I can resize them along just one axis and have the other axis resize automatically?
Richard
I resize some images on a page using css(can't do it using normal html as the page is rendered using an encoded php script and I can only change the css for the template - images are called in the template using tags <%picture%>.
So, I resize using this css
Code:
.resizedImage img {
width:139px;
height:118px;
border:1px solid black;
}
Fine if all the images have the same dimensions. But, some are taller than others so when they resize they appear squashed.
Is there anyway way I can resize them along just one axis and have the other axis resize automatically?
Richard