CSS Underlined Images (When links)

Associate
Joined
3 Oct 2006
Posts
2,304
Location
London
At the moment whenever I hover over an image on my webpage, that is a link an underline appears. How would I stop this happening with all image links on my page?

(In css)

Thanks
 
You're right in that there shouldn't be an underline on an image that is a link. At least not by default.
However, your css would never work as you're not going to have an 'a' tag enclosed inside of an img tag.

Any chance of you posting your html/css up?
 
You're right in that there shouldn't be an underline on an image that is a link. At least not by default.
However, your css would never work as you're not going to have an 'a' tag enclosed inside of an img tag.

Any chance of you posting your html/css up?

Would this work?

Code:
img.a:hover {
text-decoration: none;
}
 
go into dreamweaver and do all CSS using the tools there (kinda cheating but it works and validates too) that way you have full control over what happens
 
Back
Top Bottom