CSS link colours

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
mikes1471
Forum Commoner
Posts: 88
Joined: Sat Jan 24, 2009 3:29 pm

CSS link colours

Post 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
crazycoders
Forum Contributor
Posts: 260
Joined: Tue Oct 28, 2008 7:48 am
Location: Montreal, Qc, Canada

Re: CSS link colours

Post by crazycoders »

a img { border: 0px; }
mikes1471
Forum Commoner
Posts: 88
Joined: Sat Jan 24, 2009 3:29 pm

Re: CSS link colours

Post by mikes1471 »

Good call!
Post Reply