Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference</title>
<style>
.clamp {
line-clamp: auto;
max-height: 3lh;
font: 20px / 20px monospace;
width: 14ch;
text-wrap: balance;
background: yellow;
}
</style>
<div class="clamp">
Balanced text changes its lines after the container width changes significantly.
</div>