Hi, I am using jQuery to create divs that will be used as menu items from a button click. These divs are draggable, the thinking is that you can drag a div 40px to the right and then that div will become a child of the above div.
Please can anyone tell me how to constrain movement of the div so it can only be indented by a 40px left margin.
Here is a JSfiddle of what I have so far
http://jsfiddle.net/clintongreen/BMX4J/Cheers