Reply to Re: Detecting line wrap and adding "..." to overflowed words

Your name:

Reply:


Posted by jojo on 10/14/06 11:11

Harlan Messinger wrote:

>> overflow:hidden; (Hides the overflow)
>> text-overflow:ellipsis; (Displays "...")
>> white-space:nowrap; (Prevents the text from line-breaking. Don't know
>> wether it's neccessary or not)
>
> IE defines it but I can't get it to work there or in Firefox. W3C says
> it's been suggested but it's one of a number of proposed properties they
> haven't even evaluated for inclusion in the CSS 3 draft yet.

perhaps you have to specify a width in addition. worked fine on a site I
had once (but don't ask me for the exact code I used, I do not remeber
it...). It worked well in IE. Firefox didn't display the ellipses, but
it cut the text right. Perhaps you could use :after and the
content-property to display the ellipses in CSS 2.1 compatiple browsers
like Firefox.

HTH, jojo

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация