title: resize image only if too big
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6844433/set-image-max-size">Set image max size</a>  </p>
  </blockquote>
  
  
  
  <p>I have an area of <code>100x150 px</code> to display an image. </p>
  
  <p>If the image to display is <strong>larger</strong> than this area, it should be resized (constraining width and height) to fit in the area, however when it is <strong>smaller</strong> than the area, it should remain in the original size.</p>
  
  <p>Is this possible to do in <code>HTML</code>? or do I need to resize the image in serverside?</p>