tags:

views:

118

answers:

5

A rectange is appearing outside the link which i dont want. How do u remove it. No Image

<a href="~/Web Pages/Home.aspx" runat="server">
    <img src="<%= ResolveUrl("~/Images/TestToday.png") %>" alt="No image" width="200" height="200"/>
</a>
+6  A: 
border = "0"

that will do the trick

or in css:

img {
    border:0px;
}
Natrium
A: 

Put this in your css:

:link img { border: 0; }
Dave Hinton
+1  A: 

You need this CSS rule:

a img {border: none; }
Eugene
A: 

You probably see the anchor tags border.

Try adding BORDER="0" to your a tag. Or set border to none in your stylesheet

stimpie
A: 

Are you talking about the dotted outline that appears when clicking a link?

Try

a:active
{
 outline: none;
}

this removes the outline when clicking, but not when entering the link using the keyboard (which is when it's really needed).

Pekka