Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linked-image border color - CSS

Status
Not open for further replies.

squashface

Programmer
May 6, 2002
2
0
0
US
does IE 5.5 allow you to set pseudo property border-color changes to images? let's say i have an image with a 1 px border. i link that image, so it should ostensibly display the same properties of color change when you roll over it as a text link would (here, in the case of a:hover). but i can't get this to work on IE 5.5 . it's working on IE 5.x for mac, and NS 6.2 for both platforms... but not on IE 5.5 on a PC.

any ideas as to why?
 
code will help us help u
wink
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
I just checked it with 5.5 and I get a blue border which turns to red on mouseover. I'm not sure that you need to put the border around it as ie seems to outline the image in the same colors as it underlines link text. Don't know what happens in Netscape though. You can change this colour by changing your link colors (vlink, alink etc).
On your images I can just see (failing eyesight) a whitish outline, which is probably your border, outside the blue border but it does not change colour on mouseover.

I think you should be able to do something with the border colors in the < border > tag, but I haven't tried it. You may also need to put in a style tag to inhibit the blue (link) border (a {text-decoration:none}) else you will have a border wider than you want.
Keep watching this space, there are some great ideas people contributing to this thread, someone is sure to come up with something useful.
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top