title: how to make all list items stretch to full width of a container
body: <p>I' trying to create a nav that's responsive but I can't get then menu items to stretch itself relative to the container.</p>
  <p>What's the most effective modern method of making all elements auto fit themselves full width of a container?</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>nav {
    border: solid 1px #000;
    width: 700px;
  }
  
  ul {
    width: 100%;
    list-style-type: none;
    width: 100%;
  }
  
  ul li {
    padding: 25px;
    display: inline-block;
    background: #000;
    color: #fff;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href="#"&gt;a&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;b&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;c&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;d&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;e&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;f&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>