By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,574 Members | 1,205 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,574 IT Pros & Developers. It's quick & easy.

Overflow, ellipsis

P: n/a
IE allows to show text that exceeds the container's boundaries as
unfinished (by adding ellipsis).

e.g.:
<div style="text-overflow:ellipsis;overflow:hidden;width:20px">some
long text</div>
will be shown as
some lon...

Is there any way to do the same in Firefox by means of ellipsis?

May 31 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
marss wrote:
IE allows to show text that exceeds the container's boundaries as
unfinished (by adding ellipsis).

e.g.:
<div style="text-overflow:ellipsis;overflow:hidden;width:20px">some
long text</div>
will be shown as
some lon...
That is an IE invention, it is not part of the W3C CSS 2 specification;

<URL:http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow>

Is there any way to do the same in Firefox by means of ellipsis?


Some script-based solutions have been discussed in the past based on
whether scroll bars are displayed or not - I don't think they are a good
idea. Search the archives at:

news:comp.lang.javascript
You may be able to use a CSS hack to make a style rule visible to IE
only to set overflow to 'ellipsis' and auto (or whatever) for other
browsers.
--
Rob
May 31 '06 #2

P: n/a

RobG wrote:

Some script-based solutions have been discussed in the past based on
whether scroll bars are displayed or not - I don't think they are a good
idea. Search the archives at:

news:comp.lang.javascript
You may be able to use a CSS hack to make a style rule visible to IE
only to set overflow to 'ellipsis' and auto (or whatever) for other
browsers.


Thanks a lot, RobG

May 31 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.