I'm trying to create a link image whose border changes color when the mouse is hovering over it. However, I can't get the <a> tag's border to surround the image to begin with in FireFox! (Seems to be Ok in Internet Explorer).
Once I can get the border to surround the item, I can then use the a:hover attributes to change its colour, but I just can't seem to get this border to go all the way around!
Can someone please tell me what I'm doing wrong?
Thanks a lot in advance for any help you can offer,
Dan.
Code:
<html>
<body>
<a style="border: 2px solid red;"><img src="images/flags.jpg"></a>
</body>
</html>
Once I can get the border to surround the item, I can then use the a:hover attributes to change its colour, but I just can't seem to get this border to go all the way around!
Can someone please tell me what I'm doing wrong?
Thanks a lot in advance for any help you can offer,
Dan.