How to apply ellipsis to a paragraph based on div's height?

I want it to wrap and when it reached the bottom corner of the div, it will add an ellipsis.

Here is the pen

There is no easy way to do this until line-clamp is implemented by all browsers.

There are some tricks you can do such as mentioned here.

Or for webkit you can do this:

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.