forcing a break
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 posted this at 09:24 — 15th August 2002.
He has: 3,348 posts
Joined: Jul 2001
Why not just add a ?
Abhishek Reddy posted this at 09:33 — 15th August 2002.
He has: 3,348 posts
Joined: Jul 2001
Use
width : 160px;
word-wrap : break-word;
But that's IE-only AFAIK.
Jack Michaelson posted this at 07:15 — 16th August 2002.
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 posted this at 08:34 — 16th August 2002.
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.