in English
Tekst trunkshɔn
Trunket lɔng string dɛn fɔ tɛks wit ɛlipsis.
Fɔ mek yu gɛt lɔng kɔntinyu, yu kin ad wan .text-truncate
klas fɔ kɔt di tɛks wit ɛlipsis. I nid fɔ gɛt display: inline-block
ɔ display: block
.
Dis tɛks rili lɔng, ɛn dɛn go kɔt am wans dɛn dɔn sho am.
<!-- Block level -->
<div class="row">
<div class="col-2 text-truncate">
This text is quite long, and will be truncated once displayed.
</div>
</div>
<!-- Inline level -->
<span class="d-inline-block text-truncate" style="max-width: 150px;">
This text is quite long, and will be truncated once displayed.
</span>