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/02/06 21:56

On 2006-11-02, CRON <cronoklee@hotmail.com> wrote:
> Anyone know a way to force a break-word wrap on a table cell without
> specifying its width? I want it to just work the very same as a regular
> wrap.
> ie it breaks the word if it doesnt fit into the cell.
[snip]
> <td style="word-wrap:
> break-word;">thisisaverylongwordthatdoesnotwrapandstretchesthecell!</td>
> </tr>
></table>
>
> table-layout:fixed works

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

I didn't think you could ever break long words in CSS 2.1, but IE does
have some extra non-standard properties for specifying that (I think it
might be the text-overflow property).

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.

 

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

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