How to remove blue border from Image hyperlink ?


Hi

So many time, we will get scenario to remove blue border from Image hyperlink. Then we can remove like this using CSS

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
<style type="text/css">
.Removeunderline
{
   border-style:none;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<a href="Default5.aspx">
 <asp:Image ID="Image1" Height="50px" Width="150px" ImageUrl="~/eHelpine.jpg" CssClass="Removeunderline"  runat="server" /> </a>

</asp:Content>

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.