Greetings,
I have an image, with text alongside, that both link to another page (same page) The text changes color when either the image or text is hovered. This is good. BUT, my image has a 1px border that I also want to chnge color when hovered. I can not seem to achieve this. my attemtps have cause a border to go around the whole thing, image AND text, when only should go around the image.
heres the code:
HTML:
CSS:
I have an image, with text alongside, that both link to another page (same page) The text changes color when either the image or text is hovered. This is good. BUT, my image has a 1px border that I also want to chnge color when hovered. I can not seem to achieve this. my attemtps have cause a border to go around the whole thing, image AND text, when only should go around the image.
heres the code:
HTML:
Code:
<a class="archives" href="[URL unfurl="true"]http://somelink/file.asp">[/URL]
<img src="[URL unfurl="true"]http://somelink/file.gif"[/URL] alt="Archives" align="middle" class="archiveimg"/>To Archive Page</a>
CSS:
Code:
a.archives:link {color: #333333; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: normal; text-decoration: none}
a.archives:visited {color: #333333; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: normal; text-decoration: none}
a.archives:active {color: #333333; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: normal; text-decoration: none}
a.archives:hover {color: #00ff00; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: normal; text-decoration: none}
.archiveimg {border: 1px solid #282484}