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; height: 48px; background: blue; }
.page { break-before: page; }
</style>
<div style="background: green"></div>
<div class="page" style="height: 384px"></div>
<div class="page" style="background: purple"></div>
<div></div>