I am attempting to create a table with alternating borders on the cells.
After trying the code below, I still can't seem to get the desired effect. The borders are not showing up at all. Can someone provide guidance on how to achieve this?
<style type="text/css">
.withBorder {
border: 1px solid black;
}
.withoutBorder {
border: none;
}
</style>
<table>
<tr>
<td class='withoutBorder'> cell1 </td>
<td class='withBorder'> cell2 </td>
<td class='withoutBorder'> cell3 </td>
</tr>
<tr>
<td class='withBorder'> cell1 </td>
<td class='withoutBorder'> cell2 </td>
<td class='withBorder'> cell3 </td>
</tr>
</table>