I saw this solution, but I donβt remember exactly where ... without JS
perhaps it works when the line is interrupted. But what is the css property?
Question: how to show the user: points if the text is longer than 150 pixels
Demo
<div>apple</div> <div>jack fruit</div> <div>super puper long title for fruit</div> <div>watermelon</div> div { font-family: Arial; background: #99DA5E; margin: 5px 0; padding: 1%; width: 150px; overflow: hidden; height: 17px; color: #252525; }
source share