I am planning to write a tic tac toe game with jQuery and PHP. I want to style the board (an html table) with CSS. I am not aware of CSS properties that can be applied to selectively to cells so that specific cells get borders.
Are there any CSS properties that I can use or should I try a different approach instead?
The html markup is:
<div id="board">
<table>
<tr id="row1">
<td class="square"></td>
<td class="square"></td>
<td class="square"></td>
</tr>
<tr id="row2">
<td class="square"></td>
<td class="square"></td>
<td class="square"></td>
</tr>
<tr id="row3">
<td class="square"></td>
<td class="square"></td>
<td class="square"></td>
</tr>
</table>
</div>
Well, add a second class to some TDs and give borders only to that class.
HTML and CSS: