I'm writing an A4 paper in HTML/CSS with paper-css but I'm having some trouble with the centering (https://css-tricks.com/centering-css-complete-guide/#both-flexbox).
Current result:
Desired result:
https://jsfiddle.net/askhflajsf/x7sjrzy4/
@page {
size: A4
}
.frontpage {
display: flex;
justify-content: center;
align-items: center;
}
.frontpage > * {
text-align: center;
}
.frontpage footer {
align-self: flex-end;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/paper-css/0.2.3/paper.css" rel="stylesheet"/>
<body class="A4">
<section class="sheet padding-10mm frontpage">
<h1>Logo centered horizontally/vertically</h1>
<footer>Footer centered horizontally but pushed to the bottom vertically</footer>
</section>
</body>