How to make a div with 'd1' id draggable, please describe with the codes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to make a div with 'd1' id draggable, please describe with the codes

5th Jun 2017, 8:22 AM
Shaswat Singh
Shaswat Singh - avatar
2 Answers
+ 3
You can make draggable divs with "InteractJS", I haven't learned that yet but it was cool. check it. 😊
5th Jun 2017, 8:29 AM
Cyrus Ornob Corraya
Cyrus Ornob Corraya - avatar
+ 3
<style> #d1{ overflow: scroll; resize: both; max-width: 300px; max-height: 460px; } #d1[draggable=true] { cursor: move; } </style> <div id="d1" draggable="true"> test </div>
5th Jun 2017, 8:29 AM
M0H4MM4D
M0H4MM4D - avatar