Overflow in a Paragraph

Hey WebFlow Family!

I’m trying to implement this custom code, but no success so far.

I have two places on my page that I would like to use.

  1. To affect the width of a text-link element on a single line, and to add the ellipsis when the content is larger than the allotted space.

  1. To affect the height of a rich-text element, and to add the ellipsis when the content is larger than the allotted space (for example after three lines of text).

Here’s a Read-Only Webflow Link to my project.
Here’s a Screen Recording Video of my explaining.

Thanks!