in English
Kgaotšo ya sengwalwa
Kgaola dithapo tše telele tša sengwalwa ka ellipsis.
Bakeng sa diteng tše telele, o ka oketša .text-truncate
sehlopha go kgaola sengwalwa ka ellipsis. E nyaka display: inline-block
goba display: block
.
Sengwalwa se ke se setelele kudu, gomme se tla kgaolwa ge se šetše se bontšhitšwe.
<!-- 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>