IMG-LOGO

How to remove link border around the image in Html?

andy - 12 Jul, 2013 2938 Views 0 Comment

When you create a hyperlink using an image, you will notice that there is link border around the image. By default in Internet Explorer, the color of the border is blue border. This border is automatically added around the image.

There are two available solution you can apply in here. The first solution is to include a property called border and set to 0. See below example:

<a href="#mylink"><img alt="my logo" src="http://www.webkeet.com/contents/images/Webkeet-Online-Learning.png" style="border-width: 0px; border-style: solid;"/></a>

Second alternative is using CSS, you can to cover all the images inside a hyperlink will not have a border. See the example:

a img{
   border:none;
}

Comments

There are no comments available.

Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.

Related Articles

How to style pagination links with CSS?

Do you need to create a beautiful, simple and elegant pagination links with css? Simply follow our easy and quick tutorial on how to create the pagination links easily with CSS.

Optimizing your site for printing

The easy way to optimize your site for printing is to create a separated external css targeting a media to print only When a printing action is being executed the browser will send over the information from your page to ...