title: Automatically fit images on div container while resizing window
body: <p>I need to resize some blocks dinamically to fill a blank space caused when window resizes (I think this could be done with javascript) but how could I do this?</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-js lang-js prettyprint-override"><code>var txt = "";
  txt += "&lt;p&gt;innerWidth: " + window.innerWidth + " px&lt;/p&gt;";
  txt += "&lt;p&gt;outerWidth: " + window.outerWidth + " px&lt;/p&gt;";
  
  document.getElementById("demo").innerHTML = txt;</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.container {
    width:100%;
    background:#fff;
    height:300px;
  }
  
  .fixed-block {
    float:left;
    height:80px;
    border:solid 2px #000;
    min-width:70px;
    background:#777;
    width:23%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div class="fixed-block"&gt;
    &lt;/div&gt;
     &lt;div class="fixed-block"&gt;
    &lt;/div&gt;
     &lt;div class="fixed-bblock"&gt;
    &lt;/div&gt;
     &lt;div class="fixed-block"&gt;
    &lt;/div&gt;
     &lt;div class="fixed-block"&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="demo"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here is <a href="https://jsfiddle.net/6v0hvr91/" rel="nofollow noreferrer">jsfiddle</a></p>