I am trying to achieve this effect:

I have tried the following but it does not work at all (no borders appear at all). Can anyone explain how to achieve what I would like.
<style type="text/css"> .withBorder { border: 1px; } .withoutBorder { border: 0px; } </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>