title: How to make a sticky footer using flexbox in IE11?
body: <p>I'm trying to make a simple design with flexbox but I'm having trouble with IE11. Basically, I want a footer that sticks to the bottom only if the content is not high enough. I have no issue doing that with Chrome like 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-css lang-css prettyprint-override"><code>*,
  *:after,
  *:before {
    box-sizing: border-box;
  }
  
  html,
  body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  body {
    display: flex;
    flex-direction: column;
  }
  
  main {
    flex: 1;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;header&gt;
    Header
  &lt;/header&gt;
  &lt;main&gt;
    &lt;p&gt;Main&lt;/p&gt;
    &lt;p&gt;Main&lt;/p&gt;
    &lt;p&gt;Main&lt;/p&gt;
    &lt;p&gt;Main&lt;/p&gt;
    &lt;p&gt;Main&lt;/p&gt;
  &lt;/main&gt;
  &lt;footer&gt;
    Footer
  &lt;/footer&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Just play with the number of <code>&lt;p&gt;main&lt;/p&gt;</code> to see the wrong behaviour with IE11.</p>
  
  <p>Is there a way to achieve this without JavaScript?</p>