<div class="box">
Lorem ipsum dolor sit amet consectetur adipisicing elit Ab unde doloremque aspernatur recusandae harum nulla assumenda praesentium facere blanditiis qui quam magni perferendis fugiat est, provident animi tenetur doloribus corporis?
</div>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
min-height: 100vh;
line-height: 1.5;
}
.box {
width: 200px;
display: box;
box-orient: vertical;
line-clamp: 3;
overflow: hidden;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.