DEV Community

Discussion on: The way better than 'string'.truncate(3) in Rails, If it's responsive website.

bizzibody profile image
Ian bradbury

Another option..... text-truncate is a standard Bootstrap class.

<span class="d-inline-block text-truncate" style="max-width: 150px;">
Praeterea iter est quasdam res quas ex communi.

n350071 profile image
n350071🇯🇵 Author

I didn't know that. it's a very useful class! I remember it. Thank you for the comment :D