Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
.clamp {
display: block;
font: 16px / 32px monospace;
white-space: pre;
background-color: yellow;
}
.child {
overflow: hidden;
}
</style>
<div class="clamp"><div class="child">Line 1
Line 2
Line 3
Line 4
Line 5</div></div>
<p>Following content.</p>