Source code

Revision control

Copy as Markdown

Other Tools

<!doctype html>
<meta charset="utf-8">
<title>CSS Test Reference</title>
<style>
.no-bottom-margin {
margin-bottom: 0;
}
.clamp {
display: flow-root;
font: 16px / 32px serif;
white-space: pre;
background-color: yellow;
}
</style>
<p class="no-bottom-margin"><span>The following yellow box should clamp after 4 lines.</span></p>
<div class="clamp">Line 1
Line 2
Line 3
Line 4…</div>