title: Table with CSS Grid
body: <p>My CSS Grid table doesn't have same width on its columns, I want to replicate the table structure but with CSS Grid.</p>
  <p>I'm using <code>grid-auto-flow: column;</code> because in my app, the cells are dynamically generated and will be different in number.</p>
  <p>An image to show the issue:
  <a href="https://i.stack.imgur.com/G7HAk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G7HAk.png" alt="enter image description here" /></a></p>
  <p>The code:
  <a href="https://jsfiddle.net/w8sdvnr7/1/" rel="nofollow noreferrer">https://jsfiddle.net/w8sdvnr7/1/</a></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>div {
    display: grid;
    grid-auto-flow: column;
  }
  
  p {
    border: 1px solid red;
    margin: 0;
  }
  
  table {
    border-collapse: collapse;
  }
  
  td {
    border: solid 2px red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;h3&gt;Not working: CSS Grid: The cells in the rows have different size.&lt;/h3&gt;
  &lt;div&gt;
    &lt;p&gt;ABC&lt;/p&gt;
    &lt;p&gt;A&lt;/p&gt;
    &lt;p&gt;ABCDEFGHIJKLMNOP&lt;/p&gt;
  &lt;/div&gt;
  &lt;div&gt;
    &lt;p&gt;ABCDEFGHIJKLMNOP&lt;/p&gt;
    &lt;p&gt;A&lt;/p&gt;
    &lt;p&gt;AB&lt;/p&gt;
  &lt;/div&gt;
  &lt;hr&gt;
  &lt;br&gt;
  &lt;hr&gt;
  &lt;h3&gt;What I want: CSS Table: The cells in the rows have same size.&lt;/h3&gt;
  &lt;table&gt;
    &lt;tr&gt;
      &lt;td&gt;ABC&lt;/td&gt;
      &lt;td&gt;A&lt;/td&gt;
      &lt;td&gt;ABCDEFGHIJKLMNOP&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;ABCDEFGHIJKLMNOP&lt;/td&gt;
      &lt;td&gt;A&lt;/td&gt;
      &lt;td&gt;AB&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>