ASP.NET Hyperlink Selection Area

Is there a way to create a rectangle arround a certain area of an ASP.NET page, when you hover over it, change color and when you click it go to a link - without hurting or covering the data underneath the rectangle?
Who is Participating?
SlimshaneeyConnect With a Mentor Commented:
Put this in the head:
.boxTan {border: 1px solid tan}
.boxPurple {border: 1px solid purple}

<div id="mydiv" onmouseover=" = 'boxTan';" onmouseout="javascript: this.className = 'boxPurple';">Text Here</div>
just use <div> or something
Sorry, the div goes in the body where you want the effect to appear...
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

sticarAuthor Commented:
I'll try it and let you know.... Thanks!
sticarAuthor Commented:
Ok... I do have a style sheet....but... This is a template so it's an .ascx page and I cannot just put in class="menu" or whatever one I want to use and I don't believe I can put in some javascript... ??

<TD><div id="Div0" class="menu"><A href="home.aspx">
<asp:image id="menu" ImageUrl="graphics\person.gif" runat="server" ImageAlign="AbsMiddle"></asp:image><FONT color="#355a98" size="4">
sticarAuthor Commented:
Nevermind... I think I'm getting it from here... It just likes to keep rearranging and adding extra tags in there when I add something...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.