title: HTML/CSS: Specify number of lines inside <span>
body: <p>I have a PHP-Webapp and a span, that looks something like this:</p>
  
  <p><code>&lt;span&gt;&lt;?= $text ?&gt;&lt;/span&gt;</code></p>
  
  <p>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?</p>