title: max width of inside div not working
body: <p>just practising with the <code>max-width</code> property in CSS. In the following code, the inside div <code>.topimage</code> (the one with red color) is not appearing at all even after setting <code>max-width: 960px;max-height: 200px;</code> What could be the reason? Please note, I am using max width/height because I want the inside div to scale according to the size of browser window.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html,body {
   margin: 0px;
   height: 100%;
   width: 100%;
   left: 0px;
   top: 0px;
   background-color: rgba(173,192,241,1);
      }
  
  .wrapper {
   height: 800px;
   max-width: 960px;
   margin-left: auto;
   left: 0px;
   top: 0px;
   margin-right: auto;
   position: relative;
  }
  
  
  
  .topimage {
   max-width: 960px;
   max-height: 200px;
   background-color: rgba(255,0,0,1);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="wrapper"&gt;
  &lt;div class="topimage"&gt;
  &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>