title: text-align center in <li> element
body: <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>body {
   margin: 0;
  }
  
  .header {
      width: 80%;
      height: 20%;
      margin-left: 10%; 
      position: fixed;
      top: 0; 
      box-sizing: border-box;
      border-style: solid;
      border-width: 1px;
      background-color: green;
  }
  
  .image {
      width: 20%;
      height: 100%;
      float: left;
      box-sizing: border-box;
      border-style: solid;
      border-width: 1px;
  }
  
  .navigation {
      width: 79%;
      height: 100%;
      float: right;
      text-align: right;
      box-sizing: border-box;
      border-style: solid;
      border-width: 1px;
  }
  
  ul {
      height: 100%;
      font-size: 0;
      box-sizing: border-box;
      border-style: solid;
      border-width: 1px;
      background-color: yellow;
  }
  
  li {
      height: 100%;
      font-size: initial;
      display: inline-block;
      box-sizing: border-box;
   border-style: solid;
   border-width: 1px;
      background-color: blue;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="header"&gt; 
  
        &lt;div class="image"&gt;
        Image
        &lt;/div&gt;
    
        &lt;nav class="navigation"&gt; 
          &lt;ul&gt;
            &lt;li&gt; 1.0 Main Menu &lt;/li&gt;
            &lt;li&gt; 2.0 Main Menu &lt;/li&gt;
            &lt;li&gt; 3.0 Main Menu &lt;/li&gt;
          &lt;/ul&gt;
        &lt;/nav&gt;
        
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>With the above code I have created a <code>&lt;header&gt;</code> containing of an <code>&lt;image&gt;</code> and a <code>&lt;navigation&gt;</code>. All this works fine so far. </p>
  
  <p>Now I want that the <strong>text</strong> inside the <code>&lt;li&gt;</code> element appears in the <strong>center</strong>. Therefore, I tried to go with the property <code>text-align: center;</code> in the <code>li CSS</code> but it did not work.</p>
  
  <p>What do I have to change in my code to get the <strong>text</strong> within the <code>&lt;li&gt;</code> elements <strong>centered</strong>? </p>
  
  <p>You can also find my code here: <a href="https://jsfiddle.net/5jv8m5xf/39/" rel="nofollow noreferrer">https://jsfiddle.net/5jv8m5xf/39/</a></p>