[HTML] Help How to make text overflow = ellipsis work with multiple lines of text?
Go to solution
Solved by colonel_mortis,
There's no easy way to do it using pure HTML and CSS (for some reason - it would be really useful for a lot of people), but there are some more complicated workarounds that people have managed to come up with. This way seems to be one of the better ones: http://www.mobify.com/blog/multiline-ellipsis-in-pure-css/
Alternatively, there are a whole load of different methods outlined in https://css-tricks.com/line-clampin/(make sure you look at the links at the bottom as well for more recent versions), some of them using pure css and others using javascript as well. The method linked above is also linked from that page.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now