Hyperlinked image borders

  • Thread starter Thread starter Gary
  • Start date Start date
G

Gary

I have a stylesheet with values for:
a:link
a:visited
a:hover

When the visitor mouses over a link, the text color or
image border color changes to the hover color. Works fine
with text links, and works fine for image links also, in
every browser except IE. IE apparently ignores the a:
style info for image links. Anything I can put in the
stylesheet that will force IE to behave like other
browsers (without messing up their behavior)?
 
-----Original Message-----
I have a stylesheet with values for:
a:link
a:visited
a:hover

When the visitor mouses over a link, the text color or
image border color changes to the hover color. Works
fine with text links, and works fine for image links
also, in every browser except IE. IE apparently ignores
the a: style info for image links. Anything I can put in
the stylesheet that will force IE to behave like other
browsers (without messing up their behavior)?

IE considers the picture border as part of the picture,
and not as part of the hyperlink. So, you have to code:

<img border="5" src="picture.gif
onmouseover="this.style.borderColor='green';"
onmouseout="this.style.borderColor='red';">

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
Back
Top