Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show ellipses to the overflew text for HTML elements in Firefox?

Tags:

css

firefox

I need to show the ellipses(...) if the text overflows in DIVs and SPANs.

I have a CSS attribute called text-overflow:ellipses. But this works only in IE.

I want to display the same in other browsers like Firefox/Chrome etc..

like image 490
Puru Avatar asked Oct 15 '22 04:10

Puru


1 Answers

This article (http://mattlaine.com/blog/?p=49) explains how to do it for Firefox.

There is also a jQuery plugin that will add the ellipses for Firefox.

text-overflow: ellipsis works on a few other browsers, like Safari. Opera uses -o-text-overflow.

like image 78
Brock Adams Avatar answered Nov 17 '22 04:11

Brock Adams