Word-wrap by giving width in percentage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vedika
    New Member
    • Feb 2008
    • 9

    Word-wrap by giving width in percentage

    Hello,
    I have problem with word-wrapping. When width is given in pixel style="word-wrap:word-break" works well but when it is given in percentage then it is not working.

    <table border="1" width="20%">
    <tr>
    <td width="10%" style="word-wrap:break-word">
    ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccccccccccc ccccccc
    </td>
    </tr>
    </table>

    Also word-wrap:break-word not working in safari.



    Please Help
    Thanks
    Vedika
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    word-wrap is not a standard property but is in the CSS3 draft and is supported by some browsers, I just don't recall which ones.

    Comment

    Working...