Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to remove border of a hyper-link image?

Tags:

<li><a href="#" ><img src="images/hospitality.png" title="" /></a>

Problem- image is getting displayed inside a blue rectangle box in IE and Mozilla but not in Chrome.How can I remove that blue box from IE also?

like image 318
nectar Avatar asked Jun 10 '10 09:06

nectar


People also ask

How do I make a picture a link without borders?

Adding border="0" to your img tag prevents that picture from having a border around the image. However, adding border="0" to every image would not only be time consuming but also increase the file size and download time. To prevent all images from having a border, create a CSS rule or file with the following code.

How do I remove the border after clicking a link?

Just add a:visited { outline: none; } in your style file.

How do I remove the outline of an image?

Select the picture whose border you want to remove. On the Page Layout tab, in the Page Background group, select Page Borders. Click the Borders tab. Under Setting, select None.

How do I remove the blue border around image links?

The "border=0" solution works, but it is not very easy to implement since it requires its addition in every and each link image you put in your project. Show activity on this post. Show activity on this post. For removing this border you should set border to none.

How do I remove the blue border around a link?

This will remove borders from all images with links on the page. Within SharePoint Designer right click on the image's web part and select picture properties, select appearance and change border thickness to 0 and the blue border disappears.

How to remove the border around a link in SharePoint?

This will remove borders from all images with links on the page. Within SharePoint Designer right click on the image's web part and select picture properties, select appearance and change border thickness to 0 and the blue border disappears. Your styling the wrong element, you need to style the links.

How do I remove borders from images on a page?

Add a Content Editor Webpart to the affected page. Edit the HTML for the webpart. Paste in the following text: This will remove borders from all images with links on the page. Show activity on this post.

How do I add a border around a hyperlink in WordPress?

Click on site actions (top left corner of screen) Go to : Site settings - Look and feel - site theme Change the selected color for the "followed Hyperlink" to white (color code is #F8F8F8) Click apply. Show activity on this post. The border is created from the outline attribute just make sure you have it as none.


2 Answers

You can set this CSS to remove the blue border on every image within a link:

a img {
    border: 0;
}
like image 99
Douwe Maan Avatar answered Oct 08 '22 03:10

Douwe Maan


Or add it inline to the img element:

<li>
    <a href="#">
        <img style="border: 0;" src="images/hospitality.png" title="" />
    </a>
</li>
like image 36
Alex Avatar answered Oct 08 '22 01:10

Alex