You are here: Re: Can you force a 'break-word' wrap on a td without specifying its width? « HTML « IT news, forums, messages
Re: Can you force a 'break-word' wrap on a td without specifying its width?

Posted by Ben C on 11/03/06 08:09

On 2006-11-02, CRON <cronoklee@hotmail.com> wrote:
>> > table-layout:fixed works

>> Does that actually break long words? Or just clip them?

> Yes if you use table-layout:fixed it has the same effect as setting the
> width of the cell. In Firefox, it leaves the cell the same size and
> overflow:visibles the content ... if u get me?

I think so. You mean it sticks out of the side, rather than breaking
long words? In other
words You ne
ver get th
is eff
ect of words break
ing across lines where they shouldn't.

[snip]
>> The only other possibility is to insert breaking zero width space
>> characters between each character in the content. But I think you said
>> you didn't want to change all the content.
>
> How does this work? it moght not work but I'd be interested for future

The idea is you insert &#8203; which is the unicode "Zero Width Space
Character" between all the characters in your content. Or <wbr>. This
came up recently, but I didn't manage to find the thread.

I think the gist of it was the usual story: varying support across
browsers for either thing.

 

Navigation:

[Reply to this 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

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