in English
Gearradh teacsa
Gearr sreathan fada de theacsa le ellipsis.
Airson susbaint nas fhaide, faodaidh tu .text-truncate
clas a chuir ris gus an teacsa a ghearradh le ellipsis. Feumaidh display: inline-block
no display: block
.
Tha an teacsa seo gu math fada, agus thèid a ghearradh sìos nuair a thèid a thaisbeanadh.
<!-- 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>