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;
}
.flexbox table {
border-spacing: 0;
}
.flexbox thead, .flexbox tfoot {
background: gold;
}
.text, tr {
block-size: 0.25in;
}
</style>
<div class="text">Before Flexbox</div>
<div class="flexbox">
<table>
<thead><tr><td>Header</td></tr></thead>
<tfoot><tr><td>Footer</td></tr></tfoot>
<tbody>
<tr><td>1</td></tr>
<tr><td>2</td></tr>
<tr><td>3</td></tr>
<tr><td>4</td></tr>
<tr><td>5</td></tr>
<tr><td>6</td></tr>
<tr><td>7</td></tr>
</tbody>
</table>
</div>
<div class="text">After Flexbox</div>
</html>