in English
Teksafkapping
Knip lang stringe teks af met 'n ellips.
Vir langer inhoud, kan jy 'n .text-truncate
klas byvoeg om die teks met 'n ellips af te kap. Vereis display: inline-block
of display: block
.
Hierdie teks is redelik lank en sal afgekap word sodra dit vertoon word.
<!-- 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>