Foxseiz Foxseiz - 1 year ago 82
HTML Question

How to add border on table cells, but not the whole table on html?

I'm trying to add a border on table cells but I cannot figure out how to do it with rowspan.

I want a table that has 4 cells
1 big cell on the left and 3 small cells on the right of the big one.

here's the code I used


Answer Source

This can be done using CSS. Check this css sample

td {
  border: 1px solid black;
<table class="tnews-side" border="0">

<td rowspan="3">
<table border="1" cellpadding="4" cellspacing ="0">Row 1 Cell 1</table>
  <td>Row 1 Cell 2</td>
  <td>Row 2 Cell 2</td>
  <td>Row 2 Cell 2</td>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download