Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table question?

Status
Not open for further replies.

bongmarley

Programmer
Oct 21, 2002
74
CA
I have a table that recieves comments from a database. Some of the comments are real long. When the data is inserted it stays on one line making the td very long. I want it so that the td stay the same width no matter how much info put in but allow them to change height depending on what is written in them. Is this possible?
 
have you tried giving the cells a width parameter and not a height.
<table style=&quot;width:300px;&quot;>
<tr>
<td style=&quot;width:150px;&quot;></td><td style=&quot;width:150px;&quot;></td>
</tr>
</table>
---------------------------------------
{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }
---------------------------------------
for the best results to your questions: FAQ333-2924

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top