title: Layout a flex box similar to a table?
body: <p>I'm working with a framework developed in-house which depends on a certain structure to our HTML. And one of the tricky things is that each row needs its own container with its own classes and data attributes.</p>
  
  <p>So here's the problem. Without drastically changing the DOM, how can I make the flex box below render essentially like an HTML table would? Or is a table the only way? The solution will have to work in both IE11 and Chrome.</p>
  
  <p>I'm trying to make it look like this...</p>
  
  <pre><code>Column A      |      Column B      |      Column C
  1             |      2             |      3
  </code></pre>
  
  <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>section {
    display: flex;
    flex-wrap: wrap;
  }
  
  section .col {
    flex: 1 1 auto;
  }
  
  section .line-break {
    flex-basis: 100%;
    width: 0px; 
    height: 0px; 
    overflow: hidden;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
    &lt;head&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;section&gt;
        &lt;header&gt;
          &lt;div class="col"&gt;Column A&lt;/div&gt;
          &lt;div class="col"&gt;Column B&lt;/div&gt;
          &lt;div class="col"&gt;Column C&lt;/div&gt;
        &lt;/header&gt;
        &lt;div class="line-break"&gt;&lt;/div&gt;
        &lt;div class="row"&gt;
          &lt;div class="col"&gt;1&lt;/div&gt;
          &lt;div class="col"&gt;2&lt;/div&gt;
          &lt;div class="col"&gt;3&lt;/div&gt;
        &lt;/div&gt;
      &lt;/section&gt;
    &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>