HighDots Forums  

Overflow, ellipsis

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Overflow, ellipsis in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
marss
 
Posts: n/a

Default Overflow, ellipsis - 05-31-2006 , 02:34 AM






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?


Reply With Quote
  #2  
Old   
RobG
 
Posts: n/a

Default Re: Overflow, ellipsis - 05-31-2006 , 03:07 AM






marss wrote:
Quote:
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>


Quote:
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


Reply With Quote
  #3  
Old   
marss
 
Posts: n/a

Default Re: Overflow, ellipsis - 05-31-2006 , 03:38 AM




RobG wrote:

Quote:
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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.