CSS Tip💡

You can use -webkit-line-clamp property to easily limit the number of lines in a block of text.

This property only works when the display property is set to ‘-webkit-box’ or ‘-webkit-inline-box’ and the ‘-webkit-box-orient’ property is set to ‘vertical’.