I am writing a javaScript program that has N number of Div’s and when ever mouse hovers over a particular div on the left of it there should be displayed a UP and DOWN button.
I tried taking two DIV’s. even when the mouseOver’s the second div the buttons are visible only on the left side of the First Div.
I want it left of the First DIV when mouse overs the First Div and left of the Second Div when the mouseOver’s the second Div…
Here is an example in jsfiddle:
How to fix this?
It’s pretty simple. Try this:
HTML
CSS
Here it is in action: http://jsfiddle.net/brenjt/JYXkk/