SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Oct 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question To wrap text in a td in firefox

    Hi,

    I have to wrap text in a td in firefox.
    My text is long single word like
    <td>wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww</td>

    How can I wrap it to fit the width of the td.
    At the moment it is expanding the width of the whole table.

    Any help would be appreciated.

    Regards
    Isha

  2. #2
    SitePoint Addict Zarin Denatrose's Avatar
    Join Date
    Jan 2009
    Location
    Surrey BC, Canada
    Posts
    309
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try using this CSS rule:
    Code CSS:
    td{
    max-width: 200px; /*Or whatever you'd like your width to be. This may not be necessary.*/
    word-wrap: break-word;
    }


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •