Hyperlinked image borders

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)?
 
J

Jim Buyens

-----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)
|/---------------------------------------------------
*----------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top