title: Flex layout with a fixed column
body: <p>I have this structure ... it's similar to the WordPress administration area ... the point is that I need <strong>.main</strong> taking all the space available in width and height and <strong>.foot</strong> remains down while there is no content that lowers it. I want to use flex because I will have columns inside the <strong>.main</strong> and I need these columns take full height as well... Maybe someone can give me another solution, but I can NOT change the html, only the CSS</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>.wrap {
    display: flex;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    bottom: -100px;
    background-color: #00a0d2;
    width: 200px;
  }
  
  .main {
    background-color: #66BB6A;
    display: flex;
  }
  
  .foot {
    margin-left: -200px;
    background-color: #9999dd;
    height: 60px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="wrap"&gt;
    &lt;div class="sidebar"&gt;Menu&lt;/div&gt;
    &lt;div class="main"&gt;Content&lt;/div&gt;
    &lt;div class="foot"&gt;Footer&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>where the final result would be something like this, thx</p>
  
  <p><a href="https://i.stack.imgur.com/3SSaf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3SSaf.jpg" alt="enter image description here"></a></p>