Limtu Limtu - 1 month ago 7
HTML Question

Adding links to <td>

Can't figure out the appropriate way for adding links to

<td>
, I have tried conventional
<a href"#"></a>
, but for some reason messes up the table and messes the CSS.

I have looked at other ways such as
div
, but I am not sure how to implement it.

<div id="fftime">
<table id="ff" class="ffstyle">
<thead>
<tr>
<th></th>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
<th>Thursday</th>
<th>Friday</th>
</tr>
</thead>
<tbody>
<tr>
<td>07:00&nbsp;- 08:00</td>
<td rowspan="5">Sprint Training</td>
<td>Sparring</td>
<td rowspan="5">Class 1</td>
<td rowspan="5">Class 2</td>
<td rowspan="5">Class 3</td>

Answer

If you want to put a link inside a <td> element, you just need to put a link inside a <td> element, like so:

<td><a href="#">MY TEXT</a></td>
Comments