Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<style>
@page { size: 5in 3in; margin: 0.5in; }
body { margin: 0; }
.flexbox {
display: block;
border: 0.25in solid black;
font-size: 0.25in;
}
.item {
width: 100%;
}
</style>
<!-- This div makes the flexbox not at the top of first page. -->
<div style="height: 1in; background: gray;"></div>
<div class="flexbox">
<div class="item">1<br>2<br>3<br>4</div>
<div class="item">5</div>
</div>
</html>