Page 1 of 1

CSS link colours

Posted: Sun May 17, 2009 12:05 pm
by mikes1471
Hi Everyone

Simple problem, at the top of my CSS document I have

Code: Select all

A:link, A:visited{
color:green;
text-decoration:none;
}
A:hover{
color:red
}
The problem is that I've added images to the webpage now and they have <a href... to take the visitor to other pages on the site but the images have a green box around them which turns red when you hover.... I only want this to happen to my text I dont want the boxes around the images...?

Any suggestions?

Mike

Re: CSS link colours

Posted: Sun May 17, 2009 12:19 pm
by crazycoders
a img { border: 0px; }

Re: CSS link colours

Posted: Sun May 17, 2009 12:21 pm
by mikes1471
Good call!