how to limit text , paragraph characters ?
Unfortunately you can only limit the number of lines using CSS but not characters or words.
- Set line-height to use EM instead of PX. Example: 1.4em
- Set max-height to a multiple of that setting. Example: 2.8em or 4.2em
- Set overflow to hidden.
To limit by characters or words, use a JS lib.
7 Likes
you are my savior ! Haha thanks again !!
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.