Is it possible to implement the effect of overflow:ellipsis with javascript or css?

I want to show ... when overflow happens,

but sadly in css there is only overflow:hidden which is near but not exact what I want.

Is it possible to implement it ?


text-overflow: ellipsis;

See and Doesn't support Firefox, however.

Edit: There's a jQuery plugin for this. After you have installed it, call


to activate the style. See There are a bunch of other jQuery plugins for besides this.


-moz-binding > firefox
-o-text-overflow > opera
text-overflow > ie + webkit (chrome/safari)


Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.