Skip to content Skip to sidebar Skip to footer

Href Not Working On Table Td's But It Works On Ul Li's

I am in bit of a situation here. When I change the tr to ul and td to li then the links work but in the table it links does not work. The links are fetched by permalink and the cod

Solution 1:

I don't think that's how a table structure should flow. Right now, a simplified version of your table structure looks like this:

<tr><ahref="/content"><td>Content here</td></a></tr>

The <a> tag is inside of the TR element.

Have you tried putting the <a> tag in the TD element?

<tr><td><ahref="/content">Content here</a></td></tr>

The <a> tag is now inside of the table cell its self, and content should flow nicely.

Also look for any syntax errors. Best of luck!

Post a Comment for "Href Not Working On Table Td's But It Works On Ul Li's"