Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
@page {
size: 600px 300px;
margin: 0;
}
body {
margin: 0;
}
div {
break-after: page;
width: 100px;
height: 100px;
overflow: clip; /* Depending on font, glyphs may overflow. */
background: yellow;
}
div:nth-child(odd) {
margin-top: 200px;
}
div:nth-child(even) {
margin-left: 500px;
}
</style>
<div>
bottom left corner
</div>
<div>
top right corner
</div>
<div>
bottom left corner
</div>
<div>
top right corner
</div>