title: Centering things! Navigation bar and header
body: <p>I am really new to coding. Formatting is always an issue with me and I spend lots of time looking at similar questions in here and reading tutorial etc and tried different things. I have the exact same code on one page and it seems center. However I can't get my items centered here or replicate. Once I have my header centered I would like my nav bar to be centered underneath. PLease help.</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>html, body {
    margin: 0 auto;
    padding: 0;
  }
  .container {
    max-width: auto;
    margin: 0 auto;
  }
  .box {
    border: 2px white dotted;
    border-radius: 15px;
    margin-top: 30px;
    margin-left:auto;
    margin-right:auto;
    width: 470px;
    padding: 10px;
    display:inline-block;
  }
  .nav-pills li a {
    color: black;
    border-radius: 10px;
    margin: 3px;
    font-size: 20px;
    font-weight: 589px;
    vertical-align:middle;
    border-radius:0px;
    background-color: white;
    display:inline-block;
  }
  .nav-pills {
    position: relative;
    margin-top: 20px;
    margin-left:auto;
    margin-right:auto;
    text-align:center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="header" id="header"&gt;
    &lt;div class="container"&gt;
      &lt;div class="row row-centered"&gt;
        &lt;div class="col-md-4 col-centered"&gt;
          &lt;div class="box"&gt; 
            &lt;h2&gt;lewis &lt;br&gt;&lt;span&gt;Designs&lt;/span&gt;&lt;/h2&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="menu"&gt;
        &lt;div class="row row-centered"&gt;
          &lt;div class="col-md-6 col-centered"&gt;
            &lt;ul class="nav nav-pills"&gt; 
              &lt;li&gt;&lt;a href="./home.html"&gt;Home&lt;/a&gt;&lt;/li&gt; 
              &lt;li&gt;&lt;a href="./about.html"&gt;About&lt;/a&gt;&lt;/li&gt; 
              &lt;li&gt;&lt;a href="./gallery.html"&gt;Gallery&lt;/a&gt;&lt;/li&gt; 
              &lt;li&gt;&lt;a href="./contact"&gt;Contact&lt;/a&gt;&lt;/li&gt; 
            &lt;/ul&gt;
          &lt;/div&gt; 
        &lt;/div&gt;
      &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>