Help - Search - Members - Calendar
Full Version: How to Wrap Lines in HTLM
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
gerberpollack
I'm trying to program my html to auto-wrap sentences if the data exceeds the width of the sell. The sentences are currently extending the cell and are only on one line. Another issue is the spaces between words compressing. The here's the portion of the HTML where I want to enable this functionality. The table draws data from a .csv file that varies in size.

<table cellspacing="3" cellpadding="2" width="1160" border="0">
<tbody>
<tr>
<th valign="top" align="left" width="300"><u><b><img height="300" alt="${image_url}" width="300" src="${image_url}" /></b></u></th>
<td valign="top" align="left"><u><b><tt>Title</tt></b></u><tt>: ${Title}</tt>
<p> </p>
<b><u><tt>Description</tt></u></b><tt>: ${Description} 
<p> </p>
<b><u>ASIN</u></b>: ${ASIN} </tt>  
<p> </p>
<u><b><tt>Variation</tt></b></u><tt>: ${Variation} 
<p> </p>
</tt></td>
</tr>
</tbody>
</table>
Darin McGrew
Can you provide the URL (address) of a document that demonstrates the problem?
pandy
Do the line that don't wrap contain spaces or are they just long strings without spaces, like a long URL?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.