Text overflow
text-overflow property. It controls if overflow text is clipped with or without an ellipsis. | CSS Shortcut class | Applied style |
|---|---|
| |
| |
Examples
Clip
text-clip
This text is clipped abruptly without an ellipsis when it overflows.
<p class="text-clip">
This text is clipped abruptly without an ellipsis when it
overflows.
</p> Truncate
text-truncate
This text ends with an ellipsis when it overflows.
<p class="text-truncate">
This text ends with an ellipsis when it overflows.
</p> xs:> 480pxsm:> 640pxmd:> 768pxlg:> 1024pxxl:> 1280px
<div class="xs:text-truncate ...">
...
</div>