1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description"
content="The blocks should be split across pages as if there was no offset">
<style>
@page {
size: 400pt 300pt;
margin: 50pt;
}
body {
outline: thin solid rgb(0, 0, 0, 0.25);
}
.block {
position: relative;
top: 50pt;
left: 50pt;
height: 39pt;
border-top: 1pt solid black;
background-color: lightblue;
page-break-inside: avoid;
}
</style>
</head>
<body>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
</body>
</html>
|