Calling upon my bravest Neocities Warriors to help grandma with her website. On https://valentines.neocities.org/more is there any way to make that to-do list draggable?! Please feel free to check out the code and berate me if it's scuffed I'm aware everything is held together with duct tape around here
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........
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.
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
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........
https://www.w3schools.com/howto/howto_js_draggable.asp Is this what you mean?
@larvapuppy yes! I've tried messing with that script but for some reason nothing I do seems to work ðŸ˜
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.
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
Oh and of course change the "mydiv" in the "dragElement(document.getElementById("mydiv"));" part of the script to "todo" LOLof