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; } 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> 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. Link to comment https://forums.phpfreaks.com/topic/51772-solved-image-border/#findComment-255134 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.