I'd like to create an HTML table where you can select columns, i.e. they are highlighted when you hover over them and they redirect to a new page when you click. (For example, clicking on the fifth column takes you to column.aspx?col=5
).
Trouble is, HTML tables work in rows: <tr><td>...</td></tr>
So I'm deliberating between achieving this with floated <a>
s to represent the columns and child <span>
s to represent the rows, vs. using a table
and achieving the desired effects with jQuery.
Which would be better (and why)? Or is there another solution I should consider? Please advise.