How to limit the character count of the paragraph text

Instead of showing the whole text paragraph from the post entry, here is how you can limit the character count. Select the text class container/wrapper and apply this CSS snippet.

.class-name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

Pic of picture frame with a pot of plant on a desk

Leave the first comment

Related posts