How to Truncate text with CSS
Brief explanation and some code samples:
If the text is longer than one line, it will be truncated and end with an ellipsis ….
HTML
<p class="truncate-text">If I exceed one line's width, I will be truncated.</p>
CSS
.truncate-text {
overflow: hidde...
saintvandora.hashnode.dev1 min read
Michelle David
Blockchain/Solidity | Frontend Web dev | Google Cloud Engineer
It would be nice if a picture of the outcome is added.