title: Proportional image scaling
body: <p>I have a div of known size and a link to some image with random size, which i want to show inside this div. I would like an image to have proportional scaling, to be as big as posible, but no bigger than div (either the image width should equal the div's width or the image height should equal the div's height, but i dont exactly know which case).</p>
  
  <p>How could i do it using only html, css, javascript and jquery?
  And it would be great not to read the image size.</p>