title: How do I center text when there is a vertical navbar/sidebar?
body: <p>My website has a vertical navigation bar to the left, so when I center text it is centered but not centered in the green section.</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>.sidebar {
      position: fixed;
      height:100%;
      left: 0;
      top: 0px;
      width: 300px;
      background:#6495ED;
  }
   
  h1 {
      text-align: center;
  }
   
  ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
      width: 300px;
      background-color: #6495ED;
  }
   
  li a {
      display: block;
      color: #000000;
      padding: 8px 0 8px 16px;
      text-decoration: none;
      font-size: 50px;
      font-family: "Verdana", Geneva, sans-serif;
  }
   
   
  li a:hover {
      background-color:#27C0FD;
      color: #000000;
  }
   </code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;link rel="stylesheet" type="text/css" href="css.css"&gt;
  &lt;body bgcolor="#81F781"&gt;
  &lt;head&gt;
  &lt;h1&gt; Informational Tech Site&lt;/h1&gt;
   
  &lt;/head&gt;
   
  &lt;body&gt;
  &lt;div class="sidebar"&gt;
      &lt;ul&gt;
      &lt;li&gt;&lt;a href="#home"&gt;Home&lt;/a&gt; &lt;/li&gt;
      &lt;li&gt;&lt;a href="#news"&gt;News&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#contact"&gt;Contact&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#about"&gt;About&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;  
  &lt;/div&gt;
   
  &lt;/body&gt;
    </code></pre>
  </div>
  </div>
  </p>
  
  <p>Code is here. <a href="http://pastebin.com/xgvt4P0a" rel="nofollow">http://pastebin.com/xgvt4P0a</a></p>
  
  <p>Here is the image the text is centered, but not centered in the green section. <a href="https://imgur.com/kkDlnik" rel="nofollow">https://imgur.com/kkDlnik</a>
  Thanks!</p>