DEV Community

loading...

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

Collapse
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.
</span>

getbootstrap.com/docs/4.0/utilitie...

Collapse
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