tags:

views:

26

answers:

2

Hi

i have a HTML code its working fine in IE but its not working in Mozilla

please see code below

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>New Document</TITLE>
</HEAD>

<BODY>
<TABLE BGCOLOR="#B6EBFF" BORDER="3">
 <TR>
  <TD ALIGN="CENTER" STYLE="WORD-BREAK: BREAK-ALL;">
  thisisthetextabcdefghijklthisirrrrrrrrrrrrrrrrrrrsthetextabcdefghijklthisisthetextabcdefghijklthisisthetextabcdefghijklthisisthetextabcdefghijklthisisthetextabcdefghijklthisisthetextabcdefghijklthisisthetextabcdefghijklthisisthetextabcdefghijklthisisthetextabcdefghijklthisisthetextabcdefghijkl

  </TD>
 </TR>
 <TR>
  <TD ALIGN="LEFT" BGCOLOR="FFFEA8">this is the text</TD>
 </TR>
</TABLE>
</BODY>
</HTML>

Please Help

A: 

found this somewhere in my bookmarks it still just works with white-spaces. Or split the word on a certain character or server-sided.

td
{
    white-space: pre-wrap; /* css-3 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
}
Tim
in my case there is no any white-spaces.i have used this code but it doesnt work
sang
that's what i said. Do you use any serverside scripting language like php?
Tim
A: 

Sang, word-break and word wrap is for separate words, not for single very long word/sequence of characters. I hope this rings some bells for you.

Dick

Dick Lampard