views:

285

answers:

1

I'm trying to implement text-overflow: ellipsis; support in the FireFox version of my web site. I've found the XUL hack on the web and have applied it to the stylesheet, but I find that applying the hack removes all other styling from the element. In other words, I can either have the ellipsis, or I can have the background image, gradients, line-height, etc.

How can I get the ellipsis hack to work alongside my other styles?

A: 

Put an extra div around the element, and give that one all the background and fonts, then set the text-overflow on the child.

Jouke van der Maas
Tried this a few days ago and ran into a problem where the div (or span) would wrap to the next line and wouldn't be located to the right of the icon like it was supposed to be.
John Haager