When attempting to drag and drop three images into a droppable div, I encountered an issue where the images were not perfectly positioned within the div. This problem seemed to be related to the positioning of the droppable div itself. Specifically, when setting the position property to relative for the droppable div, the images did not drop as expected. Is there a way to achieve the desired functionality with the position set to relative?
#droppable {
position: relative;
overflow: hidden;
margin-left: 10%;
margin-top: 10%;
width: 800px;
height: 450px;
border: 1px solid black;
background: #EBECED;
}
You can view my code in Jsfiddle