title: How to center text inside background image?
body: <p>This piece of text isn't centering properly in the div. Any help would be great! Here is the CSS desk file <a href="http://www.cssdesk.com/Vc8yF" rel="nofollow">http://www.cssdesk.com/Vc8yF</a> As you can see the text is more to the left than center. Please help! Thank you.</p>
  
  <p><strong>Code Snippet:</strong></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>body {
    margin: 0;
    padding: 0;
  }
  .header {
    height: 50px;
    background-color: #191919;
  }
  .navcontainer {
    float: right;
    margin-right: 100px;
  }
  .nav li {
    display: inline;
    font-family: arial;
    color: white;
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-weight: 300;
    padding-left: 50px;
  }
  .billboard {
    height: 620px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    text-align: center;
    background-position: center;
    background-image: url('http://i300.photobucket.com/albums/nn18/ojijimanuel/Midtown_Manhattan_and_Times_Square_district_2015_zpsqimz80ub.jpg');
  }
  h1 {
    margin: 0;
    text-align: center;
    color: white;
    font-family: arial;
    font-size: 50px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href='https://fonts.googleapis.com/css?family=Titillium+Web:300' rel='stylesheet' type='text/css'&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
    &lt;div class="header"&gt;
      &lt;div class="navcontainer"&gt;
        &lt;ul class="nav"&gt;
          &lt;li&gt;Home&lt;/li&gt;
          &lt;li&gt;About&lt;/li&gt;
          &lt;li&gt;Contact&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
  
    &lt;div class="billboard"&gt;
      &lt;h1&gt;SAMPLE TEXT&lt;/h1&gt;
    &lt;/div&gt;
  
  
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>