Ellipsis class that works in almost all browsers
Applying ellipsis class will put three dots at the end of single line of the content.
Remember that it works only for block elements.
.ellipsis {
white-space: nowrap;
overflow:hidden;
text-overflow:ellipsis;
-o-text-overflow:ellipsis;
-ms-text-overflow:ellipsis;
-moz-binding:url("ellipsis-xbl.xml#ellipsis")
}
and ellipsos-xbl.xml is required for firefox
Remember that it works only for block elements.
.ellipsis {
white-space: nowrap;
overflow:hidden;
text-overflow:ellipsis;
-o-text-overflow:ellipsis;
-ms-text-overflow:ellipsis;
-moz-binding:url("ellipsis-xbl.xml#ellipsis")
}
and ellipsos-xbl.xml is required for firefox
Comments