mercredi 4 avril 2018

How to show only three lines (not more than three lines) of a paragraph using CSS? [duplicate]

This question already has an answer here:

I want to display only three lines of a paragraph using CSS?

<p> This is a long paragraph in HTML which you have in your web page but you can see only 3 lines of it. </p>

Note: I could use a div with "overflow:hidden" and set its height to certain pixels until only three lines of

are visible, but I want to know if there is any better way using CSS property?




Aucun commentaire:

Enregistrer un commentaire