Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
body {
margin: 0;
}
@page {
size: 400px 300px;
margin: 0;
}
</style>
<!DOCTYPE html>
<div style="height:50px; background:black;"></div>
<div style="width:350px; height:0;">
There should be 5 pages. The yellow box should go all the way to the
bottom of the fifth page. There should be a black top border at the top of
the first page, and a gray bottom border around halfway down on the third
page. The yellow box should be on the top of the gray border.
</div>
<div style="height:0;">
<div style="height:675px;"></div>
<div style="height:50px; background:gray;"></div>
</div>
<div style="width:50%; height:1450px; background:yellow;"></div>