Skip to content

Instantly share code, notes, and snippets.

@prettycode
Created June 3, 2013 14:49
Show Gist options
  • Save prettycode/5698711 to your computer and use it in GitHub Desktop.
Save prettycode/5698711 to your computer and use it in GitHub Desktop.
HTML layout with paper-page styling.
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
width: 100%;
padding: 0;
margin: 0;
background-color: #F0F0F0;
}
article {
font-size: 14px;
font-family: sans-serif;
width: 8.5in;
margin: 35px auto 35px auto;
border: 1px solid #C0C0C0;
background-color: white;
padding: .6in .9in;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0),0 0 10px rgba(0, 0, 0, 0.1);
box-sizing: border-box;
}
h2:first-child {
margin-top: 0;
}
</style>
</head>
<body>
<article>
<h2>Title here!</h2>
dfaasdfasdf
</article>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment