title: Make flex children inline-block
body: <p>I would like to have the flex children rendered <code>inline-block</code> so that <code>border-bottom</code> is under the <code>li</code>'s width instead of the container's width.</p>
  
  <p>Apparently flex children can't be set as inline-block?</p>
  
  <p>Is there a workaround to this problem?</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>.menu {
    display: flex;
    flex-flow: column;
    list-style: none;
    padding: 0;
  }
  .menu &gt; li {
    display: inline-block;
    margin-bottom: 1rem;
    border-bottom: 3px solid black;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul class="menu"&gt;
    &lt;li&gt;Tab 1&lt;/li&gt;
    &lt;li&gt;Tab 2&lt;/li&gt;
    &lt;li&gt;Tab 3&lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://codepen.io/joshuajazleung/pen/EbwZmJ" rel="noreferrer">https://codepen.io/joshuajazleung/pen/EbwZmJ</a></p>