title: Responsive image max height 100% doesnt work in firefox
body: <p>i'm currently trying to make an image resize depending on the browser dimensions. I've managed to get the image to resize horizontally, if I make the browser window narrow the image will resize proportionally just fine. However when I resize the window vertically, Firefox just doesn't seem to want to do it! The code is pretty simple</p>
  
  <pre><code>&lt;body&gt;
  
      &lt;div id="content"&gt;
          &lt;img src="images/abc.jpg"&gt;
      &lt;/div&gt;      
  
  &lt;/body&gt;
  </code></pre>
  
  <p>and the CSS:</p>
  
  <pre><code>#content {  
      height: 100%;
      padding: 50px;
  }
  
  
  #content img{
      max-height:100%;
      max-width: 100%;
  }
  </code></pre>
  
  <p>Another issue is that the image <em>does</em> seem to resize vertically in chrome, but i have to drag the bottom of the browser well over the image before it start doing this. I'd rather the image start to rezise as soon as the bottom content padding "hits" the bottom of the image so to speak. Hope this is making sense.</p>
  
  <p>Any help much appreciated</p>