Reputation: 335
I'm making Tic Tac Toe game using HTML, CSS and Javascript. For the 9 boxes I've used a table which is horizontally centred. I wish to draw a straight line across the winning combination. Should I use svg, canvas, div or anything else?
<table>
<tr>
<td></td>
...
</table>
Upvotes: 0
Views: 2130
Reputation: 1126
I would propose 3 (2 invinsible 1 visible svg) lines
<svg height="210" width="500">
<line x1="0" y1="0" x2="200" y2="200" style="stroke:rgb(255,0,0);stroke-width:2" />
</svg>
Upvotes: 2