I have a table that is populated with the data from a database. The basic table layout is as such:
<table class="cssTable">
<tr>
<td class="cssRowCell1">1.</td>
<td class="cssRowCell2">Data here</td>
</tr>
</table>
The problem is that if a database contains a long line of text without any spaces in it, the text is not wrapped around the page and sticks out from the right side of the page.
I tried doing the following and none of these worked:
1 Added the following to CSS:
.cssRowCell2
{
min-width: 880px;
word-wrap: break-word;
overflow: hidden;
}
2 Tried to add explicit table width:
<td class="cssRowCell1" width="2%">1.</td>
<td class="cssRowCell2" width="98%">Data here</td>
Any idea how to make it look good?