I have a table with lots of rows and columns.

Now I want split td "E8" in 2 columns like this:

What is the best solution?
One Way:
You can user rowspan="2" on all other cells in the same row
Example:
<table border="1" width="100%">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td rowspan="2"> </td>
<td> </td>
<td rowspan="2"> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
here is an EXAMPLE
Another Way
inside the cell you put two divs and use css to style it
HTML:
<table border="1" width="100%">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>
<div class="top">Top</div>
<div class="bottom">bottom</div>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
CSS:
.top{
background-color: #eee;
border-bottom: 1px solid #000;
}
.bottom{
background-color: #ccc;
}
and you can see an EXAMPLE HERE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With