
August 6th, 2004
08:52 PM
stillat school, into web design and punk music etc.
Status: Offline!
Image Border on Rollover
I'm trying to write some CSS so an image will gain a 1px solid black border on rollover, but can't get it to work at all. It's more annoying because I've managed to do it on a site in the past.
If you could post some code that's be great.

August 6th, 2004
09:02 PM
Neversidian
Status: Offline!
img:hover{
border: 1px solid #000;
}
should work
___________________
angelessme, antagonising neverside members, staff and administration since 2001.

August 6th, 2004
09:06 PM
stillat school, into web design and punk music etc.
Status: Offline!
doesn't seem to:
:

August 6th, 2004
09:26 PM
IE doesn't play ball with :hover except on a tags.
So if the images are links, just use:
a:hover{
border: 1px solid #000;
}
___________________
Blog / Lab

August 7th, 2004
02:47 AM
Neverside Newbie
Status: Offline!
If you want to use the :hover pseudo-class on non-anchor elements and have it work in IE, just use whatever:hover.
___________________
Tables for layout is an abuse. -- Internet Explorer is unsafe.

August 7th, 2004
05:32 PM
stillat school, into web design and punk music etc.
Status: Offline!