Skip to content

Instantly share code, notes, and snippets.

@tomasfejfar
Last active August 5, 2017 11:06
Show Gist options
  • Save tomasfejfar/333212cc346303e0702509f6402fb7c9 to your computer and use it in GitHub Desktop.
Save tomasfejfar/333212cc346303e0702509f6402fb7c9 to your computer and use it in GitHub Desktop.
Style to create a page-like div with the exact measurements of A4 paper
@media screen {
.page {
background: white;
width: 18cm;
height: 27.7cm;
display: block;
margin: 0 auto;
margin-bottom: 0.5cm;
box-shadow: 0 0 0.5cm rgba(0, 0, 0, 0.5);
padding: 1cm 1.5cm;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment