Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get rid of border around and image used as a link in Firefox?

Weird question I think its more of I am not sure what it is called. But I have an img wrapped in an link

example

...<li>
  <a href="#link">
    <img ...>
  </a>
 </li> .....

Now I have the css border rules all to 0. So their is no Blue border. But in Firefox their seems to be a pink mini dashed border only when I click on the image? In other browsers there is no border at any time. Im not sure if its from the browser itself or something I am missing. In my css I have border set to 0 on the a,:hover,:visited I even put text-decoration to none thinking that might help. But to know avail. I tried searching online for help but all I get is info on removing the border caused from placing the image in the link. So any help or a point in the right direction would be great. ! edit// I added a picture to better explain what I am talking about. alt text

like image 509
Tad Avatar asked Jul 25 '10 04:07

Tad


People also ask

How do I eliminate the blue border around linked images?

Approach: We can remove this default behavior by either defining our own border or by completely removing it using css. We can select specific images using a css class or id, to select all hyperlinked images we will use the parent-child css selector. To know more about css syntax and selectors read this.

How do I get rid of borders in Firefox?

hi, it should be possible to disable that bar when you go into the firefox ''menu ≡ > customize... '' panel and uncheck the titlebar option that's listed in the bottom left of that panel.

How do I remove the border from an image tag?

Adding border="0" to your img tag prevents that picture from having a border around the image.

How do I get rid of the white border in Firefox?

In the Firefox menu, go to 'Customize...'. Then, on the customization screen that comes up, in the bottom left it says 'title bar', with a check box next to it.


1 Answers

Links (<a>’s) by default have a dotted outline around them when they become “active” or “focused”. In Firefox 3, the color is determined by the color of the text

To remove it, simply use:

a {
    outline: none;
}

Or you can do what I do, and remove it from all elements (I use my own focus/active rules) and do

* {
    outline: none;
}

This will remove it from all elements.

like image 111
Marko Avatar answered Nov 15 '22 17:11

Marko