Created
June 30, 2011 13:41
-
-
Save jedie/1056257 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
html { | |
background-color: #555; | |
padding: 15px; | |
} | |
body { | |
background-color: #fff; | |
margin: 0 auto; | |
padding: 15px; | |
/* | |
DIN A4 = 210 x 297 | |
760px / 210*297 = 1074,9 | |
1085px / 297*210 = 767,2 | |
*/ | |
width: 760px; | |
height: 1085px; | |
} | |
.container { | |
border: 2px dotted #000; | |
width: 100%; | |
height: 100%; | |
} | |
</style> | |
<style media="print"> | |
html, body { | |
padding: 0px; | |
margin: 0 auto; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
TEST | |
</div> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment