text-overflow

Using CSS text-overflow to vary the number of lines of text within an element of a set height

I'm deep into some iPhone (Safari/WebKit) web app development at the moment and want to have items of a set height with title text and body text such that 3 lines are always showing. If the title text is short, 2 lines of body text should show. If the title text is very long, it should take up a maximum of 2 lines and leave 1 line for bo...

Overflowing HTML line text before it gets obscured by right aligned content

I've got some text that is displayed on a single line in a container that has a fixed width. If the text can't be contained within the width of the container the overflow is hidden. Any combination of three status icons may appear positioned from the right hand side of the container. If any of these icons appear I'd like the text overflo...

AutoEllipsis in StatusStrip Label?

Hi, I'm coding a Windows Forms App that has a StatusStrip that displays status informations to the user, and hints when the mouse is over relevant things. However, when the program is on it's minimal window size, the text sometimes is bigger than the whole StatusStrip, and the label simply dissapears. There must be a workaround to this, ...

How can I mimic text-overflow: ellipsis in Firefox?

I have some dynamic text contained in a div that is set to whatever a user enters in a textbox field. If the text doesn't fit in the div, right now it just gets cut off at the edge and all the text that extends past the border is not visible. I would like to truncate the text so that it fits inside the box and has an ellipsis (...) appen...

Anybody know a way to use CSS text-overflow on text that's wrapping?

Does anybody know of a way to use {text-overflow: ellipsis;} on a piece of text that's wrapping to a second line? Adding {whitespace: nowrap;} makes text-overflow work, but I need the text to wrap so I really can't use that. ...

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.. ...

Show content in title when text-overflow

CSS3 introduces text-overflow so you can hide overflowing text and even add ellipses. If the text is overflowing and hidden, I would like to show it as a tooltip when hovered. The easiest way to do this is to add the text to the title attribute of the element. However that will make the text show whether it is overflowing or not. I o...

"text-overflow: ellipsis;" in XUL applications

I'm writing an extension to an existing XUL-application, conkeror. In that, In some part of the user-interface of I'm writing, I'm creating HTML elements with a fixed-width, <span>s in this case, to display various results. Within those spans there's text some text, which, on occasion, is too long to fit its fixed-with container. I'd li...