NevadaSam
New Member
- Joined
- Apr 28, 2006
- Messages
- 9
- Reaction score
- 0
I want to use a dotted underline when I hover over a text link, but I don't want this to show up when I hover over a image link. Is there a way I can do this without calling a different class when I have an image link?
Thanks for looking at this.
Sam
Code:
<style type="text/css">
img {
background-color:#FFFFFF;
border: 1px solid #ff12fc;
padding: 5px;
margin: 5px 5px 0 0;
}
a:hover {
color:#666;
text-decoration: none;
border-bottom:dotted;
}
a:hover img {
background-color:#00FF00;
border: 1px solid #ff12fc;
padding: 5px;
margin: 5px 5px 0 0;
text-decoration: none; /* the underline shouldn't show, but it does */
}
</style>
Thanks for looking at this.
Sam
