View Full Version : code for links not working


nsideoutgrrl
02-14-2005, 01:45 AM
like it says in the title, i have a css for some link stuff. here is the code i have put in.

A:link
{ text-decoration: underline; }
A:visited
{ text-decoration: underline; }
A:active
{ text-decoration: underline; }
A:hover
{ text-decoration: none; }


what i want the code to do, is underline text links, and have no decoration on image/hover links. i'm oretty sure i put the code in right, but for some reason it's not working.

so basically, is there a problem with the code?

dmglouis
02-14-2005, 02:37 AM
You've got it right for text links but if you don't want the border for image links then insert the following in your stylesheet:
img { border: none; }

Okay, hope that helps.

pb&j
02-14-2005, 06:52 AM
perhaps post a link to your page having problems as something else may be affecting the results.

nsideoutgrrl
02-14-2005, 07:05 AM
actually, the image tag solved the problem. thanks for the help.