Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 20-05-2008
Member
 
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 ?
Reply With Quote
  #2  
Old 20-05-2008
Member
 
Join Date: May 2008
Posts: 56
Try style WORD-BREAK:BREAK-ALL; this will help you.
Reply With Quote
  #3  
Old 20-05-2008
Member
 
Join Date: May 2008
Posts: 115
Thanx.. mijaba
It works good
Reply With Quote
  #4  
Old 20-05-2008
Member
 
Join Date: May 2008
Posts: 65
Thanks friend,
this is great. I am also facing the same problem now got ans from you..
Reply With Quote
  #5  
Old 20-05-2008
Member
 
Join Date: May 2008
Posts: 3
Hi mijaba,

Style WORD-BREAK:BREAK-ALL; It's not work on Fire Fox.
Reply With Quote
  #6  
Old 20-05-2008
Member
 
Join Date: May 2008
Posts: 21
Hi

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

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "In HTML table how can I wrap the text ?"
Thread Thread Starter Forum Replies Last Post
How to Align text inserted in html table format DarenHawk Software Development 3 11-08-2009 09:08 AM
How to text wrap with label in winforms G. Kushal Software Development 3 14-07-2009 10:23 AM
Html need to know about text wrap padding around an image ComPaCt Software Development 2 09-07-2009 08:30 PM
How to word wrap text in Powerpoint jeffcoo Windows Software 3 12-06-2009 12:06 PM
VBA code to wrap text? grouth Microsoft Project 2 23-09-2008 07:30 PM


All times are GMT +5.5. The time now is 09:28 AM.