title: How to create "collapsed" borders around flex items and their container?
body: <p>I have the following layout:</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>#limited-width {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    font-size: 18px;
  }
  ul {
    display: flex;
    flex-flow: row wrap;
    list-style: none;
    padding: 0;
    margin: 20px;
  }
  ul &gt; li {
    display: block;
    text-align: center;
    flex: 1 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 4px 7px;
    border: 2px solid rgba(0,0,0,.3);
    background-color: rgba(0,0,0,.03);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="limited-width"&gt;
    &lt;ul&gt;
      &lt;li&gt;Apple&lt;/li&gt;
      &lt;li&gt;Orange&lt;/li&gt;
      &lt;li&gt;Pineapple&lt;/li&gt;
      &lt;li&gt;Banana&lt;/li&gt;
      &lt;li&gt;Tomato&lt;/li&gt;
      &lt;li&gt;Pear&lt;/li&gt;
      &lt;li&gt;Lemon&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>As you can see, the list items inside the <code>ul</code> have a border with the width of <code>2px</code>, but because of this, the border between elements doubles. I'm looking for a way to make the borders the same width between elements, while also keeping the border on the outside the same (similar to how <code>border-collapse</code> works on tables) using flexbox. Is this possible, and if so, how?</p>