<div class="container">
  <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> 
</div>
body {
  background: rgb(26, 26, 26);
}

.container {
  background: rgb(255, 65, 99);
  margin: 30px auto;
  padding: 15px;
  width: 300px;
}

.text {
  font-family: 'Arial';
  font-size: 18px;
  line-height: 1.4;
  display: -webkit-box;
  
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.