htmlasp.net.nethtml-tablecufon

Why is this hyperlink taking the whole table cell and not just on the text?


Facts:

The command I use is:

<asp:HyperLink ID="thisistheID" runat="server" NavigateUrl="#">
  <h3 style="width:250px;">Title of the Link</h3>
</asp:HyperLink>

In Firefox and IE, I'd like to mouse over the text and have the link there, solely. If I mouse over the whole cell (of the table) the link is available and appears there even tho I don't have letters there.

How can I have this link to work just where the letters are?

I hope I asked this question the appropriate way.


Solution

  • What happens if you turn it inside-out?

    <h3 style="width:250px;">
        <asp:HyperLink ID="thisistheID" runat="server" NavigateUrl="#">
            Title of the Link
        </asp:HyperLink>
    </h3>