title: HTML and CSS horizontal and vertical centering with header
body: <p>I'm trying to create HTML layout where the header is <code>110px</code> high and the content has a vertically and horizontally centered box.</p>
  
  <p><strong>Here is what I have (<a href="https://jsfiddle.net/9L58mn08/" rel="nofollow">https://jsfiddle.net/9L58mn08/</a>):</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;
    background-attachment: fixed;
    background-color: #464646;
    background-image: url("https://pixabay.com/get/e837b2092dfc003ed1534705fb0938c9bd22ffd41db419439cf5c17ea5/beach-1236581_1920.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
  }
  .header {
    background: #333333 none repeat scroll 0 0;
    height: 110px !important;
    padding-top: 0 !important;
    width: 100%;
  }
  .frame_container {
    left: 50%;
    margin-top: 110px;
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
  }
  .frame{
    background:red;
    padding:20px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt; 
    &lt;div class="header"&gt;
      Header Content
    &lt;/div&gt;
    &lt;div class="frame_container"&gt;
      &lt;div class="frame"&gt;
        This is the centered Content
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>For some reason the frame is not vertically centered, where am I going wrong?</p>