I have the following HTML for a table with 3 columns:
<TABLE cellSpacing="0" cellPadding="5" border="1" width="670">
<tr>
<td class="heading">Notice Title:</td>
<td class="heading">Composed By:</td>
<td class="heading">Posted On:</td>
</tr>
<tr>
<td class="rows" width="350"><?php echo $messageTitle; ?></td>
<td class="rows" width="200"><a href="<?php echo $authorsLink; ?>"><?php echo $authorsName; ?></a></td>
<td class="rows" width="120"><font size="2"><?php echo $messageDate; ?></td>
</tr>
<tr>
<td colspan="3" class="heading"><div align="center">Message:</td>
</tr>
<tr>
<td colspan="3" class="rows"><div align="left"><?php echo $rowdata["message"]; ?></td>
</tr>
</table>
Everything seems straight forward, except if the $rowdata["message"] field that is written in the last row contains a very long line of text, the table becomes the length of the line of text.
Since the width of cells are given, and the width of the table is given, the message cell should not widen the table, even though it is a colspan of the 3 cells above. But it does.
What do I need to do, to make the text wrap into the cell?
Thanks