desandro / draggabilly

:point_down: Make that shiz draggable
https://draggabilly.desandro.com
MIT License
3.86k stars 386 forks source link

how can i set a default position for an element? #112

Closed emretekince closed 8 years ago

emretekince commented 8 years ago

how can i set a default position for an element?

desandro commented 8 years ago

You can set left and top in CSS for the element. See demo on CodePen

emretekince commented 8 years ago

when I set left and top, the position data of element starts from 0, 0..

Also I have another problem. could you check this http://onungibiol.com/ ? when I move the box which inside of the image frame, the box goes to top of the window. and I move again, it comes back to frame. it's strange..