I am new to CSS and facing an issue with a dynamically generated HTML table. Only one cell contains data, while the adjacent cells remain empty.
<tr>
<td> Really long data that is forced to wrap around.</td>
<td> empty cell</td>
<td empty cell </td>
</tr>
Is there a way to make the first cell span multiple columns using clean and cross-browser compatible CSS without forcing a wrap around? Ideally, setting the colspan
on the first cell would be a solution, but since the HTML is generated on the server, this is not feasible.
This is the closest solution I have found so far, but it does not seem to address my specific issue.