title: How can I properly align header with centered div element?
body: <p>I want the header to align at the top-left-corner of the centered div element. The only way I can think of doing this is setting <code>position</code> to <code>relative</code> and using <code>top</code> with a value of 20%. The problem with this is that it causes the header to stretch the page further to the right as can be see in the <a href="https://jsfiddle.net/eyLkdxrs/1/" rel="nofollow noreferrer">fiddle</a>.</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>body {
    font-family: Europa;
  }
  
  .header {
    position: relative;
    left: 20%;
    display: block;
    margin-left: auto;
    margin-right: auto
  }
  
  h4 {
    font-size: 5em;
    margin: 0 auto;
  }
  
  .box {
    height: 500px;
    width: 500px;
    position: relative;
    border-radius: 20px;
    background: #6441a5;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="header"&gt;
    &lt;h4&gt;header&lt;/h4&gt;
  &lt;/div&gt;
  
  &lt;div class="box"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>