title: text-align center is not centering text on h1 and h2
body: <p>As the title says, I am trying to center h1 and h2. But whenever I type text-align: center; it just pushes them both to the left. I would like to have both h1 and h2 in the direct center of the screen. I could do it manually but I want it to be perfectly center. Thanks :)</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>h1 {
    position: absolute;
    font-family: 'Passion One';
    font-size: 50px;
    color: #42E616;
    letter-spacing: 1.6rem;
    top: calc(80% - 200px);
    text-align: center;
    text-shadow: 2px 4px 3px rgba(0,0,0,0.6);
    opacity: .68;
    z-index: 2001;
  }
  
  h2 {
    position: absolute;
    font-family: 'Open Sans', monospace;
    font-size: 12px;
    color: black;
    letter-spacing: .4rem ;
    top: calc(58% - 30px);
    text-align: center;
    opacity: .68 ;
    z-index: 2002;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
  
    &lt;link href = "https://fonts.googleapis.com/css?family=Passion+One" rel="stylesheet"&gt;
  
    &lt;link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"&gt;
  
    &lt;link rel = "stylesheet" href="Style.css"&gt;
  
    &lt;meta name = "viewport" content = "width = device-width, initial-scale=1"&gt;
  
    &lt;title&gt; AL-SABA.net &lt;/title&gt;
  
  &lt;/head&gt;
  
  &lt;header&gt;
    &lt;h1&gt; Title &lt;/h1&gt;
  
    &lt;h2&gt; Personal Website &lt;/h2&gt;
  &lt;/header&gt;
    
    
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>