PDA

View Full Version : Removing link border from images need help.


Farla
03-27-2008, 12:42 AM
Hi guys.

I've created 2 button images and link them to specific pages. However the images has a blue boundary around it to show that its a link.

Is there anyway to get rid of these borders or somehow hide it like you could with text.?

eg. a:link a:visited
{
color: #00000
}

like that in CSS?

danlefeb
03-27-2008, 07:36 AM
In your HTML add, add a border=0 attribute to the image tag. So like this:
<a href="YourImageLink"><img src="WhereverYourImageIs.jpg" border="0"></a>

If you want to do it in CSS, you can do so with the same sort of thing.
Your CSS

.img {
border=none;
}

Call That Class in Your HTML

<a href="#"><img src="WhereverYourImageIs.jpg" class="img"></a>