Tīpoka ki te ihirangi matua Tīpoka ki te whakaterenga tuhinga
Check
in English

Te tapahi kupu

Tapahia nga aho roa o te kuputuhi me te ellipsis.

Mo te roanga o te ihirangi, ka taea e koe te taapiri i tetahi .text-truncatekaraehe hei tapahi i te tuhinga me te ellipsis. E hiahia ana display: inline-blockranei display: block.

He roa rawa tenei kuputuhi, ka poroa ina ka whakaatuhia.
He roa rawa tenei kuputuhi, ka poroa ina ka whakaatuhia.
html
<!-- 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>