valentines
10 months ago
If not then I'd just be satisfied with having it move with the other elements of the page, since right now it's stuck in place. Good enough technically but it's nagging at me........
larvapuppy
10 months ago
https://www.w3schools.com/howto/howto_js_draggable.asp Is this what you mean?
valentines
10 months ago
@larvapuppy yes! I've tried messing with that script but for some reason nothing I do seems to work ðŸ˜
larvapuppy
10 months ago
Right now I don't see a script or anything in your code, but the key is to make sure that you have a parent div and a child div, with the child div's id name being the same as the parent's but with "header" after it. Right now your todo list only has a class of "todo" with no child "todoheader" inside, that could be why? Idk what you have done or tried though so I might be wrong.
larvapuppy
10 months ago
So basically change your .todo class to a #todo id, make a child #todoheader id div with your content inside, and set the #todo id header to position:absolute in your css
larvapuppy
10 months ago
Oh and of course change the "mydiv" in the "dragElement(document.getElementById("mydiv"));" part of the script to "todo" LOLof
yayyy yw! :D