Open this example in the interactive library
Source code
<style>
.demo {
overflow: clip;
height: 3rem;
}
</style>
<div class="demo">Line one<br />Line two<br />Line three</div>
Clip content without a scroll container with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
overflow: clip;
height: 3rem;
}
</style>
<div class="demo">Line one<br />Line two<br />Line three</div>