title: Flexbox centering within paper-css A4 page
body: <p>I'm writing an A4 paper in HTML/CSS with <a href="https://github.com/cognitom/paper-css" rel="nofollow noreferrer">paper-css</a> but I'm having some trouble with the centering (<a href="https://css-tricks.com/centering-css-complete-guide/#both-flexbox" rel="nofollow noreferrer">https://css-tricks.com/centering-css-complete-guide/#both-flexbox</a>).</p>
  
  <p>Current result:</p>
  
  <p><a href="https://i.stack.imgur.com/6jDCK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6jDCK.png" alt="enter image description here"></a></p>
  
  <p>Desired result:</p>
  
  <p><a href="https://i.stack.imgur.com/Uv1gx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uv1gx.png" alt="enter image description here"></a></p>
  
  <p><a href="https://jsfiddle.net/askhflajsf/x7sjrzy4/" rel="nofollow noreferrer">https://jsfiddle.net/askhflajsf/x7sjrzy4/</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>@page {
    size: A4
  }
  
  .frontpage {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .frontpage &gt; * {
    text-align: center;
  }
  
  .frontpage footer {
    align-self: flex-end;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://cdnjs.cloudflare.com/ajax/libs/paper-css/0.2.3/paper.css" rel="stylesheet"/&gt;
  &lt;body class="A4"&gt;
    &lt;section class="sheet padding-10mm frontpage"&gt;
      &lt;h1&gt;Logo centered horizontally/vertically&lt;/h1&gt;
      &lt;footer&gt;Footer centered horizontally but pushed to the bottom vertically&lt;/footer&gt;
    &lt;/section&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>