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;
}
html {
direction: rtl;
}
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-right: 500px;
}
div:nth-child(even) {
margin-top: 200px;
}
</style>
<div>
top left corner
</div>
<div>
bottom right corner
</div>
<div>
top left corner
</div>
<div>
bottom right corner
</div>