title: Flex container with 3 columns, 100% height, and fixed-width side columns
body: <p>I have a 3-column body with fixed width on the sides and the middle column filling the remaining width.</p>
  
  <p>I need however to make all columns fill the entire height of the page.</p>
  
  <p>I set the height of all parents to <code>height: 100%</code> and I don't want to use a workaround with huge margin or padding, as I'm using a scroll-bar.</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>#container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 100%;
  }
  
  .col-side {
    width: 240px;
    height: 100%;
  }
  
  #col1 {
    border-right: 2px solid rgba(0, 0, 0, 0.12);
  }
  
  #col3 {
    border-left: 2px solid rgba(0, 0, 0, 0.12);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="container"&gt;
    &lt;div class="col-side" id="col1"&gt;
      Left
    &lt;/div&gt;
    &lt;div class="col" id="col2"&gt;
      Center
    &lt;/div&gt;
    &lt;div class="col-side" id="col3"&gt;
      Right
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Small demo can be found here:</p>
  
  <p><a href="https://jsfiddle.net/ysn3q6aL/#&amp;togetherjs=H9pEenhcqQ" rel="nofollow noreferrer">https://jsfiddle.net/ysn3q6aL/#&amp;togetherjs=H9pEenhcqQ</a></p>