Table <td> width fixation for lengthy words in firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • munnaj
    New Member
    • Jul 2007
    • 6

    Table <td> width fixation for lengthy words in firefox

    hai all,

    Help me with a style code for firefox.
    Below is the code which is working fine in IE. But does not work well in firefox.
    I have also tried with another class for firefox that too not working.

    Do help me.....

    Code:
    <td width='75%' align='left' valign='top' style='width:700px;word-wrap:break-word'><p align='justify'>$Description</p></td>"

    Code:
    .td2
    {
    width:700px;
    white-space: pre-wrap; /* css-3 */
    white-space: -moz-pre-wrap !important; /* 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+ */
    white-space: pre;
    white-space: -hp-pre-wrap; /* HP Printers */
    white-space: pre-line;
    
    }
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    You need to tell us what is wrong.

    Comment

    Working...