in English
Nsɛm a wɔatwa no tiaa
Fa ellipsis twa nkyerɛwee nhama atenten no mu.
Sɛ wopɛ nsɛm a ɛware a, wubetumi de .text-truncate
adesuakuw bi aka ho de atwa nkyerɛwee no mu denam ellipsis so. Ɛhwehwɛ sɛ display: inline-block
anaasɛ display: block
.
Saa nkyerɛwee yi tenten yiye, na sɛ wɔada no adi pɛ a, wɔbɛtwa mu.
<!-- 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>