Drag and Drop in 2 Dimensions (DHMLGoodies) Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Drag and Drop in 2 Dimensions (DHMLGoodies) without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I found an dhtmlgoodies js file, that really covers almost 100% my needs. All I want to ask is, how to make the drop function 2-dimensional. I mean, if there is enough space left from the right end of the one div to the end of the drop container, the selected div to go right from it and not down under.

its a long code

Here’s the jsfiddle :



Just float the dragable boxes:


    border:1px solid #000;
    /* Other properties ...*/
    float: left; /*<-- Add this */
We are here to answer your question about Drag and Drop in 2 Dimensions (DHMLGoodies) - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji