Log in

View Full Version : No link decoration on image



sabreur
07-23-2008, 01:51 PM
I am using images (logos) as links. Is it possible to remove the border or make it transparent? A{text decoration:none} instruction only seems to effect text underlines not the border around an IMG.

Nile
07-23-2008, 02:06 PM
In css like you put it above. It should be like this:


img { border: 0; }

sabreur
07-29-2008, 09:18 AM
Thanks for this. I put it in and all looked fine. Unfortunately it was late in the day and I did not do any rigirous checking, it looked fine in IE but Firefox still displays the image border.

Do I need a hack or is there another instruction that will do it?

TheJoshMan
07-29-2008, 10:27 AM
<style type="text/css">
img{
border:0px;
}
img a, img a:link, img a:active, img a:visited, img a:hover{
border:0px;
}
</style>