Help - Search - Members - Calendar
Full Version: Can A Table Cell With H Tags Be A Link?
MonsterSmallBusiness Forums > MonsterWebDesign > Design Aspects
TNTGram
I thought I had it all figured out how to make a my header table (no logo) be a link.

I put the <a href> tag before the <td> and the </a>after the </td> tag. Inside the cell I have <h> tags. It looked to me like it worked fine, BUT my html validator tells me I can't have <h> tags inside <a> tags.

I tried reversing them with the <a> tags inside the <h> tags but then I get the gawdawful blue underlining of the link.

Can this be done? Or is my only alternative making the text an image? But then I lose the value of the h tags.

It's been a long day--I should probably just give it up for tonight, but thought I'd ask.

jackie
have you tried adding the "text-decoration: none" tag? This is best incorporated into a stylesheet class definition, then you apply the style/class to your <a> tag ...

Jackie
jGirlyGirl1
Hello,

I believe this is what you are trying to do:

CODE
<table>
 <tr>
   <td><h1><a href="/index.asp" style="text-decoration:none; font-size:14px;">Test</a></h1></td>
 </tr>
</table>


Hope that helps!

happy.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.