title: Image In Div With Max Width Not Working
body: <p>I'm applying <code>max-width</code> to a div containing an image, but the image ignores the applied value.</p>
  
  <p>Screenshot:</p>
  
  <p><a href="https://i.stack.imgur.com/4DSnI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4DSnI.jpg" alt="Image overlapping"></a></p>
  
  <p>Snippet:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.screenshot {
        max-width: 460px;
        margin: 27px;
      }
      
      .description {
        max-width: 705px;
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="screenshot"&gt;
        &lt;img src="http://placehold.it/850x850" alt="App"&gt;
      &lt;/div&gt;
      &lt;div class="description"&gt;text you see in screenshot.
      &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>