PHPnews.io

Text overflow [til/css]

Written by Remy Sharp / Original link on Nov. 6, 2020

I know about CSS's text-overflow: ellipsis but it nearly never works first time for me. I totally missed that the property needs two other properties in play against the element:

overflow: hidden;
white-space: nowrap;

It's that second one, the white-space I always forget!

Originally published on Remy Sharp's b:log

remysharp

« Match Expressions - New in Symplify 9: Composer Json Manipulator - In Object API »