1 reply [Last post]
gidmeister3
gidmeister3's picture
Offline
newbie
Last seen: 2 years 39 weeks ago
Timezone: GMT-5
Joined: 2014-11-01
Posts: 6
Points: 13

I tried the following css, so that all images sharing a class called "imgmenuitem" would get a red border when the mouse hovered over them.

img.imgmenuitem:hover
       {
    border: 1px solid red
       }

It does not work. Shouldn't it?

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 31 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Yes it should! More than that

Yes it should!

More than that cannot be said, you provide no larger context in which to see your code functioning, go back and look for your errors.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me