#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Pakistan
    Posts
    112
    Rep Power
    12

    ....nowrap Using Css....


    Hello

    I have three column in my table each column have long text i want to wrap text in each column using css plz let me know how is possible that
    Thanks & Regards<br>
    Faisal
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    MD, USA
    Posts
    35
    Rep Power
    12
    be sure to use something like this:

    word-wrap:break-word;width:100%;

    *blue: allows the item to be broken onto the next line
    *red: gives the item a limiter when wrapping, if you have it inside a table cell, you should be able to set to 100%
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Pakistan
    Posts
    112
    Rep Power
    12
    Hello

    HRU,Thanks yr mail, i checked yr code below is that example but that is not working wright plz chect out that and help me how i can done that.

    Regards
    Faisal


    <html>

    <head>

    <style>
    .break{
    word-wrap:break-word;
    }
    </style>

    </head>

    <body>

    <table width="100%" border="0" cellspacing="1" cellpadding="0">

    <tr>
    <td class="break">kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk kkkk</td>

    <td class="break">gggggggggggggggggggggggggggggggggggggggggggggggggggggg</td>
    <td class="break">rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr</td>

    </tr>
    </table>

    </body>
    </html>
    Last edited by sftaa; July 21st, 2003 at 12:54 AM.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    173
    Rep Power
    12
    you forgot the width. further more the examlpe you use is one long word, so the word will not be broken or word wrapped. try addding spaces into that long ugly line of text...then see how it works for you.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Pakistan
    Posts
    112
    Rep Power
    12
    Hi

    HRU, Thanks yr prompt response i have fixed my problem with yor help

    Thanks & Regards
    Faisal
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    173
    Rep Power
    12
    well, don't thank me entirely, thank relster too.
    But your welcome anyway, and I'm glad I could help.
    see you around. ^_^

IMN logo majestic logo threadwatch logo seochat tools logo