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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ever had a problem wrapping dynamic text?

Status
Not open for further replies.

countdrak

Programmer
Jun 20, 2003
358
US
Ok I can't figure out whats wrong.

Here is my code first -

<table width="550" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" valign="top">
<img src="/images/x.gif" width="554" height="216">
</td>
</tr>
<cfif GetProductIntro.RecordCount EQ 0>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2"><h3>Under Construction</h3></td>
</tr>
<cfelse>
<cfoutput query="GetProductIntro">
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="30%">&nbsp;</td>
<td width="70%" align="left" bgcolor="##CCCCCC">#GetProductIntro.Cat#</td>
</tr>
<tr>
<td width="30%" align="center"><img src="/images/8-bar.jpg" width="100" height="100"></td>
<td width="70%" align="left" valign="top">#GetProductIntro.Content#</td><!-- THIS IS THE CONTENT--->
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
</cfoutput>
</cfif>
</table>


When I execute this code. My Content which is coming from a database, does not wrap in the TD ...So the Content just makes my cell super wide and it looks nasty. I have looked at other posts CSS doesn't seem to work. Does anyone know why my text does not wrap and everything shows up in a line. Also if the text is not dynamic it wraps fine! I am using coldfusion and SQL.Please help. Thanks
 
Check generated HTML code, not coldfusion template. If you have buncha &nbsp; instead of spaces this may happen.
 
vongrunt:
&nbsp; will always wrap the text, if its only without spaces that a line will exetend and wrapping is required...

Known is handfull, Unknown is worldfull
 
oh,
now i understand, so all the text will be filled in one line???

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top