473,327 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Overflow, ellipsis

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
2 20722
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chris Perkins | last post by:
Is there a reason why the ... notation as a literal for Ellipsis is only allowed inside a slice? Would allowing it elsewhere frighten the parser? Chris Perkins
6
by: Jonas Kölker | last post by:
so, I've read the manuals, done a few hacks, read the quick reference. however, one thing still eludes me: what (the hell) is Ellipsis? what's it good for? how do I use it; how does the...
9
by: Jerry Sievers | last post by:
Fellow Pythonists; I am totally puzzled on the use of slicing on mapping types and especially unsure on use of the Ellipsis... and slicing syntax that has two or more groups seperated by comma....
5
by: Sébastien Boisgérault | last post by:
Hi, Can anybody come up with a sensible argument that would explain why the following test should fail ? (Expected: nothing, Got: 42). cheers, S.B. ...
2
by: Mike - EMAIL IGNORED | last post by:
Consider: #include <syslog.h> // Open syslog in constructor. void MyClass:: MyMemberFunction(...) {
11
by: Kufa | last post by:
Hi, I have a class String which implements the const char*() operator. I was doing some tests today and did something like: String test( "hello world" ); printf( "%s\n", test ); // instead of...
4
by: mhart | last post by:
I'm using a fixed width <DIV> with the following CSS style assigned: text-overflow:ellipsis; overflow:hidden; Does anyone know how, using Javascript, to detect whether the <DIV> has...
4
by: Olivier Matrot | last post by:
Hello, I'm in the process of writing a managed wrapper on legacy C++ code. I have to deal with methods that are using the ellipsis. For instance,the legacy method is : void CLog::Print (LPCSTR...
3
by: femina | last post by:
heres a sample program #include<iostream> using namespace std; void add(...) { cout<<"match using ellipsis"; } void add(int a,int b) { cout<<"a and b are"<<a<<b;
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.