Easy CSS properties can do the trick. The following is for a three-line ellipsis.
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
More Related Contents:
- Make headings (h1, h2, …) inherit style from body
- Bootstrap 4 Carousel “Half of previous”
- How can I vertically align elements in a div?
- Image inside div has extra space below the image
- Does UL have default margin or padding [duplicate]
- Why doesn’t the height of a container element increase if it contains floated elements?
- How do I make a placeholder for a ‘select’ box?
- Text in Border CSS HTML
- Equal width flex items even after they wrap
- How can I “disable” zoom on a mobile web page?
- How can I scale an entire web page with CSS?
- CSS margin adds space outside parent element [duplicate]
- Place text after dots inline with the second line of text overflow ellipsis
- Color of stacked semi-transparent boxes depends on order?
- using text-align center in colgroup
- Pure css Chessboard with div & no classes or ids, is it possible?
- 100% width minus margin and padding [duplicate]
- How to include all css kept in a directory?
- display:inline with margin, padding, width, height
- How to show an animation that is hidden behind a colored div using a “reveal” div on the surface
- How to get rid of extra space below svg in div element
- How to align footer (div) to the bottom of the page? [duplicate]
- CSS: display:block; vs display:table;
- word-wrap break-word does not work in this example
- How do I stretch a background image to cover the entire HTML element?
- CSS override rules and specificity
- How to place Text and an Image next to each other in HTML?
- wrap anchor tag around li element
- How can I control the height of an Option element in Webkit?
- How to always show the vertical scrollbar in a browser?