aneuryzm
aneuryzm

Reputation: 64834

CSS: blue border in IE and Firefox only?

I don't understand why I have this blue border around the links images in my page.

I've set outline:none border:0 but still it is there (only in Firefox and IE)... it is very strange.

http://www.alimdardesign.com/fabulicious/features.html

Thanks

Upvotes: 19

Views: 20576

Answers (5)

steve
steve

Reputation: 1

a img
{
  border : 0;
}

This worked for me. I inserted this exactly into my style.css file and I no longer see the border around the image in IE (no issue with Chrome).

Steve

Upvotes: 0

Sarfraz
Sarfraz

Reputation: 382656

Because you have an image inside a link, this border comes up, try this css:

a img
{
  border:none;
}

Upvotes: 53

bcosynot
bcosynot

Reputation: 6013

every linked image has a blue border around it. do fix this web designers generally use the following css

a img
{
  border : 0;
}

also try :

img
{
  border: 0;
}

Upvotes: 2

Delan Azabani
Delan Azabani

Reputation: 81384

The border style should apply to the image, not the link.

Upvotes: 1

VMAtm
VMAtm

Reputation: 28345

This is standart behaviour of images inside the a-tags

<img border="0" />

or

a img {
  border:none;
}

Upvotes: 1

Related Questions