2015-04-10, 11:38 PM
Is there a way to force large signature images to automatically downsize to a smaller size?
I have this in postbit_signature
and this in my template css
It seems to shrink large images down but any images that are smaller than maximum width get enlarged to maximum width. Is there a way to only downsize but not upsize?
I have this in postbit_signature
<div class="signature">
{$post['signature']}
</div>
and this in my template css
.signature {
max-width:400px;
}
.signature img {
width: 100%;
max-width: 500px;
max-height: 200px;
}
It seems to shrink large images down but any images that are smaller than maximum width get enlarged to maximum width. Is there a way to only downsize but not upsize?