Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<style>
@page {
margin: 0;
}
.block {
width: 1cm;
height: 1cm;
border: 2px solid red;
}
</style>
<body>
<div style="padding: 0; break-after: page">
<div class="block" style="border-color: lightblue"></div>
</div>
<div style="padding: 1cm; break-after: page">
<div class="block" style="border-color: pink"></div>
</div>
<div style="padding: 2cm">
<div class="block" style="border-color: gray"></div>
</div>
</body>
</html>