I have a PHP-Webapp and a span, that looks something like this:
<span><?= $text ?></span>
I would like to make sure, that the span has only one line. So if the text is too long, I would like to not show the last words. Can I do that using HTML/CSS? Or do I have to shorten the text with PHP/Javascript?