Jump to content

img and a href problem


EchoFool

Recommended Posts

Hey

 

I currently use images as a link but for some reason it puts a white border around my image which is really annoying. I don't understand why because the href class im using does not have a border in its properties.. this is what i got:

 

a:active, a:visited, a:link {
color: #FFFFFF;
font-weight: bold;
text-decoration: none;
}

a:hover {
color: #5a85b9;
}

a.forums:active, 
a.forums:visited, 
a.forums:link {
color: #5a85b9;
font-weight: bold;
text-decoration: none;
}
a.forums:hover {
color: #355c8b;
}

a.imgurl:active, 
a.imgurl:visited, 
a.imgurl:link {
font-weight: bold;
}
a.imgurl:hover {
color: #355c8b;
}

 

Im using imgurl for my images that are urls but i included all my link classes encase you can see why its happening.. my html is this:

<a class="imgurl" href="?admin">
<img src="images/admin.png">
</a>

Link to comment
https://forums.phpfreaks.com/topic/193867-img-and-a-href-problem/
Share on other sites

have you tried

 

a.imgurl:active, 
a.imgurl:visited, 
a.imgurl:link {
font-weight: bold;
border:none;
}

 

or maybe

 

a.imgurl img {
border:none;
}

 

Without a link to the page in question its impossible to tell whats causing it. Do you have firebug installed? if so then you should be able to spot what's causing it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.