.ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
-moz-binding: url('assets/xml/ellipsis.xml#ellipsis');
}
Geht im alten Firefox zwar nicht, aber der ist nicht mehr so verbreitet.
Quelle: http://mattsnider.com/css/css-string-truncation-with-ellipsis/
Keine Kommentare:
Kommentar veröffentlichen