in English
ʻoki kikokikona
E ʻoki i nā kaula loloa me ka ellipsis.
No ka ʻike lōʻihi, hiki iā ʻoe ke hoʻohui i kahi .text-truncate
papa e ʻoki i ka kikokikona me kahi ellipsis. Pono display: inline-block
a display: block
.
He lōʻihi loa kēia kikokikona, a e ʻoki ʻia ke hōʻike ʻia.
<!-- 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>