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