Part border around table

I have a table 4 cols by 3 rows. I want a border around all cells except the left, right and bottom of the bottom left cell and the left and bottom of the cell to the right of this.

This will give a table where the last row only appears to have the last 2 columns.

Can this be done?



table {border-collapse:collapse}
td {border:1px solid #999}
tr+tr+tr td:first-child {border-style:solid hidden hidden}
tr+tr+tr td:first-child+td {border-style:solid solid hidden hidden}

If you want a cross browser compatible way (that way above won’t work in IE6/7) then you will need to add classes to the specific cells to set borders on the edge cells :).