I'm using the following code to to prevent text from overflowing to a new line:
.info-box{
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
height: 3em;
width: 300px;
font-size: 1em;
line-height: 1em;
}
This works, as expected, but there is room for three lines in this box. How can I command browsers to apply the elipsis if the text extends beyond the third line? Or does text-overflow only work over one?
I probs won't bother if I need JS for this.
text-overflow
doesn't work in Firefox. – Animal