Forum Moderators: not2easy

Message Too Old, No Replies

Refer to another element on a:hover

Trigger another hover on Hover

         

rossmurphy

8:33 pm on Oct 3, 2008 (gmt 0)

10+ Year Member




Say i have element A and element B.

Is there a way to trigger a:hover of element A when the mouse is hovered over element B?

Thanks.

swa66

10:36 pm on Oct 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure if this isn't basically the same question as [webmasterworld.com...]

To answer this as such: by using just CSS: not as far as I know. You can be hovering over multiple items at the same time though.

By using javascript you might be able to fake the effect you seek.

alt131

11:33 pm on Oct 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It will depend on the relationship between
element a
and
element b
- but there are many situations when it can easily be done using pure css.

If this is the same issue as in your earlier question about drop down menus then it is entirely possible to do this using pure css and no scripting. A search on "css drop down menu" and variations will bring up lots of examples.

If not the same situation as your earlier post, then post some code so possibilities can be explored.