Bootstrap: Add utility class which adds ellipsis if text overflows

Created on 25 Feb 2016  路  2Comments  路  Source: twbs/bootstrap

As explained in the below StackOverflow question, one might often want to add an ellipsis to some text if it overflows.

http://stackoverflow.com/questions/802175/truncating-long-strings-with-css-feasible-yet/22811590#22811590

I created a pull request for this feature https://github.com/twbs/bootstrap/pull/19313

It's my first time contributing to Bootstrap so forgive me if I'm doing anything incorrectly.

css feature has-pr v4

Most helpful comment

There is already such a mixin: text-overflow() in v3 and text-truncate() in v4. However, it should be available as a class: .text-truncate.

All 2 comments

There is already such a mixin: text-overflow() in v3 and text-truncate() in v4. However, it should be available as a class: .text-truncate.

Gotcha coming in #22961

Was this page helpful?
0 / 5 - 0 ratings