title: How to center list items with flexbox?
body: <p>I am trying to create a navbar with heading on the left, and list items centered. I used flexbox to horizontally line links. Then ı added <code>margin: auto</code> to ul which moved them to left but did'nt centered them symetrically. I am guessing there is no space for the ul to move anymore. I checked other similiar posts but couldn't quite figure what the problem is. Thank you for your time.</p>
  <p>HTML</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>* {
      box-sizing: border-box;
      padding: 0;
      margin: 0;
  }
  
  body {
      font-family: 'Open Sans', sans-serif;
      background: #fff;
      color: #333;
      line-height: 1.6;
      background: url('/img/showcase.jpg.jpg');
  }
  
  
  #navbar  {
      display: flex;
      justify-content: center;
      align-items: center;
      flex: 1;
      top: 0;
      width: 100%;
      height: 60px;
      background-color: rgba(10, 10, 10, 0.5);
  }
  
  #navbar ul {
      display: flex;
      justify-content: space-around;
      text-align: center;
      margin: 0 auto;
      padding: 0;
  }
  
  #navbar li {
      list-style: none;
      padding: 20px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav id="navbar"&gt;
          &lt;div class="logo"&gt;
              &lt;h1&gt;Welcome&lt;/h1&gt;
          &lt;/div&gt;
          &lt;ul&gt;
              &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>