What is the CSS way to ensure that a div or class contains only one line of text, with ellipses added if it exceeds that limit? I am aware that setting a specific height and using overflow:hidden
can achieve this, but it doesn't quite work for my needs.
In the image below, you can see that the right div is larger than the left one. If I could make the song name display as one line with ellipses, both divs would be the same height. Does anyone have a solution for accomplishing this without resorting to something like $song = substr(0, 10, $song)
in php... hopefully a CSS-based method?