forcing a break

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

I've got a tablecell with some very long words as content and no spaces. Is there a way to force a break when the word exceeds let's say 160 pixels?

<td class="MenuTitleText">
ThisIsAveryLongWordThatShouldBeWrappedNoMatterWhat
</td>
'

Thanx in advance,

Shakespeare: onclick || !(onclick)

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Why not just add a ?

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Use

width : 160px;
word-wrap : break-word;
'

But that's IE-only AFAIK.

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

For this particular occasion I'm not using IE or NS. I'm using this browser. It's to be used within an (Delphi) application.
Unfortunately it doesn't react on word-wrap : break-word; you suggested, but thanx anyway.

Other solutions (not PHP)?

Shakespeare: onclick || !(onclick)

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

just as a matter of interest why have you got so many long words with no spaces??

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.