Results 1 to 6 of 6

Thread: In HTML table how can I wrap the text ?

  1. #1
    Join Date
    May 2008
    Posts
    115

    In HTML table how can I wrap the text ?

    Hi to all

    I have created a table with two rows. and each row consists of one single column and fixed width for the columns but when a single word exceeds that width,the table is expanded. That is my problem.

    I want to fixed column width,even if the data may increase in size. The problem comes only when a single word is bigger than the width that i have given for the columnwidth in the table.

    Here is My Table code.

    HTML Code:
    <TABLE WIDTH="100" BGCOLOR="#B6EBFF" BORDER="3" CELLSPACING="4"
    CELLPADDING="4">
    <TR>
    <TD ALIGN="CENTER">
    this is the header
    
    </TD>
    </TR>
    <TR>
    <TD ALIGN="LEFT" BGCOLOR="FFFEA8">
    this is the text
    
    </TD>
    </TR>
    </TABLE>
    It run fine.
    but when the data is "Howareyou" instead of "how are you" the table is expanded.

    Can someone help me ?

  2. #2
    Join Date
    May 2008
    Posts
    56
    Try style WORD-BREAK:BREAK-ALL; this will help you.

  3. #3
    Join Date
    May 2008
    Posts
    115
    Thanx.. mijaba
    It works good

  4. #4
    Join Date
    May 2008
    Posts
    65
    Thanks friend,
    this is great. I am also facing the same problem now got ans from you..

  5. #5
    Join Date
    May 2008
    Posts
    3
    Hi mijaba,

    Style WORD-BREAK:BREAK-ALL; It's not work on Fire Fox.

  6. #6
    Join Date
    May 2008
    Posts
    21
    Hi

    word-break:break-all, at present, is IE only.

Similar Threads

  1. How to Align text inserted in html table format
    By DarenHawk in forum Software Development
    Replies: 3
    Last Post: 11-08-2009, 09:08 AM
  2. How to text wrap with label in winforms
    By G. Kushal in forum Software Development
    Replies: 3
    Last Post: 14-07-2009, 10:23 AM
  3. Html need to know about text wrap padding around an image
    By ComPaCt in forum Software Development
    Replies: 2
    Last Post: 09-07-2009, 08:30 PM
  4. How to word wrap text in Powerpoint
    By jeffcoo in forum Windows Software
    Replies: 3
    Last Post: 12-06-2009, 12:06 PM
  5. VBA code to wrap text?
    By grouth in forum Microsoft Project
    Replies: 2
    Last Post: 23-09-2008, 07:30 PM

Tags for this Thread

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
  •  
Page generated in 1,713,586,962.43606 seconds with 17 queries