I have the following code:
For my CSS, I have:
Basically I am trying to do some like Digg's My Profile link at the top of the page. When you hover over the link on my page, both the image and the text are underlined. On Digg's site, just the text is underlined. I've looked through the code on Digg, but I can't seem to get this working properly. I want both image and the text as part of the same link object so that hovering either will cause an underline to occur, but only underline the text. Help!
TIA
Code:
<a href="(irrelevant)">
<img height="16" width="16" id="avatarsmall" src="(irrelevant)" />
(Person's Name)</a>
For my CSS, I have:
Code:
a {
color:#EEEEEE;
font-weight:bold;
margin:0 10px;
text-decoration:none;
}
#avatarsmall {
border:1px solid #999999;
padding:1px;
position:relative;
top:-1px;
vertical-align:middle;
}
Basically I am trying to do some like Digg's My Profile link at the top of the page. When you hover over the link on my page, both the image and the text are underlined. On Digg's site, just the text is underlined. I've looked through the code on Digg, but I can't seem to get this working properly. I want both image and the text as part of the same link object so that hovering either will cause an underline to occur, but only underline the text. Help!
TIA