title: Hide text if it doesn't fit in one line with CSS
body: <p>I have a <code>div</code> element which contains some text. This element has fixed width. If the text is so long that it cannot fit in one line, I want to hide that text (the whole text, not just extra lines). Otherwise show the text. </p>
  
  <p>Can this be done with CSS?</p>
  
  <p>Adding some additional elements in html that can help to accomplish this is acceptable.</p>