Puru
Puru

Reputation: 9083

How to show ellipses to the overflew text for HTML elements in 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..

Upvotes: 5

Views: 6164

Answers (3)

Brock Adams
Brock Adams

Reputation: 93463

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.

Upvotes: 4

Gabriele Petrioli
Gabriele Petrioli

Reputation: 195982

This property is not implemented in Firefox ..
They mention that you can use the -moz-binding to simulate this

reference: https://developer.mozilla.org/en/CSS/text-overflow

Upvotes: 0

dotcoder
dotcoder

Reputation: 2921

try

text-overflow:  ellipsis | clip

Upvotes: 0

Related Questions