Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

117 users online



Image Border on Rollover

Image Border on Rollover

Currently viewing this thread: 1 (0 members and 1 guests)


exit-wd

exit-wd

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.

angelessme

angelessme

Neversidian
Status: Offline!

img:hover{
border: 1px solid #000;
}

should work

___________________

angelessme, antagonising neverside members, staff and administration since 2001.

exit-wd

exit-wd

stillat school, into web design and punk music etc.
Status: Offline!

doesn't seem to:Cry:

Rabbitlab

Rabbitlab

dotcom
Status: Offline!

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

freak

freak

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.

exit-wd

exit-wd

stillat school, into web design and punk music etc.
Status: Offline!

Thanks a lot;)

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0075 seconds.