Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] Auto signature resize
#1
Not Solved
Is there a way to force large signature images to automatically downsize to a smaller size?

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?
Reply
#2
Not Solved
.signature img {
    width: 100%;
     max-width: 500px;
     max-height: 200px;
}
change it to
.signature img {
     max-width: 500px;
     max-height: 200px;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)