BrandonE97 Posted May 17, 2007 Share Posted May 17, 2007 I was trying to make an image border that is red and turns blue on mouse hover but all I get in IE is a purple border and firefox doesnt display it right either! The image is used for a link. Thanks. img:link.pic, img:visited.pic { border:2px; color:#FF0000; } img:hover.pic { border:2px; color:#0000FF; } Quote Link to comment https://forums.phpfreaks.com/topic/51772-solved-image-border/ Share on other sites More sharing options...
cmgmyr Posted May 17, 2007 Share Posted May 17, 2007 try this: img{ border:0px; } a img{ border:2px solid #FF0000; } a img:hover{ border:2px solid #0000FF; } with <a href="#"><img src="images/img.gif" /></a> Quote Link to comment https://forums.phpfreaks.com/topic/51772-solved-image-border/#findComment-255062 Share on other sites More sharing options...
BrandonE97 Posted May 17, 2007 Author Share Posted May 17, 2007 Thanks, that works great. Quote Link to comment https://forums.phpfreaks.com/topic/51772-solved-image-border/#findComment-255134 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.