kerts93
kerts93

Reputation: 5

CSS Hover and/or javascript

I have menu item in html with following code:

http://jsfiddle.net/hzHJj/

When you move your mouse over div#heli or div#reflection_heli I need it to shift div#heli up and div#heli_reflection down at the same time. I managed to make it shift only one of the div at time or 2 divs excatly the same way.

Upvotes: 0

Views: 93

Answers (1)

jamiltz
jamiltz

Reputation: 1144

You need to use a wrapper element, your existing li is good. And when it's in hover state (li:hover) make the changes for #heli and #heli_reflection

http://jsfiddle.net/sJYWr/

Upvotes: 2

Related Questions