Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<meta charset="utf-8">
<style>
@page { size: 5in 3in; margin: 0; }
:root { print-color-adjust: exact; }
body { margin: 0; }
div { width: 100px; background: blue; }
.page { break-before: page; }
</style>
<div style="height: 144px; background: green"></div>
<div class="page" style="height: 192px; background: orange"></div>
<div style="height: 96px"></div>
<div class="page" style="height: 288px"></div>
<div class="page" style="height: 96px"></div>
<div class="page" style="height: 48px; background: purple"></div>
<div style="height: 48px"></div>