0

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.

4
  • 1
    Please provide a jsFiddle. Do you have a javascript code? Commented Jun 17, 2013 at 7:51
  • I know it's valid HTML(5) but wrapping a div in anchor just still seems so wrong.. Commented Jun 17, 2013 at 7:54
  • Right now we don't have any other javascript code. Commented Jun 17, 2013 at 8:07
  • Moved code to jsFiddle Commented Jun 17, 2013 at 10:10

1 Answer 1

2

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/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.