title: How to specify a flex item to be of certain minimum width?
body: <p>I'm trying to use <code>display: flex</code>, but some <code>inline-block</code>s should never be shrunk. I'm not sure how to accomplish that.</p>
  
  <p>Here's a repro of my situation:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.marker {
    width: 2em;
    height: 2em;
    background-color: #cef;
    border: 1px solid gray;
    margin-right: 5px;
  }
  
  label {
    display: flex;
    align-items: flex-start;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container" style="width: 200px; border: 1px solid #ccc; padding: 10px;"&gt;
    &lt;p&gt;The blue boxes should be 2em wide!&lt;/p&gt;
    &lt;label&gt;
      &lt;span class="marker"&gt;&lt;/span&gt;
      &lt;span class="text"&gt;Some rather long text which is the whole reason for using flexbox.&lt;/span&gt;    
    &lt;/label&gt; 
    &lt;label&gt;
      &lt;span class="marker"&gt;&lt;/span&gt;
      &lt;span class="text"&gt;Short text.&lt;/span&gt;    
    &lt;/label&gt; 
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The problem is that <code>.marker</code> is not of specified <code>width: 2em</code>, but instead is rather narrow.</p>
  
  <p>I've read through <a href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/" rel="noreferrer">css-tricks' helpful Guide to Flexbox</a>. The only property that seemed useful was <code>flex-shrink</code> (I was expecting something of a "never shrink" property), but found no way to use it for my purpose. I've skimmed <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex" rel="noreferrer">the MDN flex pages</a> but couldn't find a solution there either. Lastly, I've also carefully reviewed the "duplicate" suggestions Stack Overflow gave me when I wrote this question, but no solution there either.</p>
  
  <p>How can you specify a flex item to never shrink beyond a certain minimum width?</p>