my HTML is:
<div>
<img src="random image (doesn't matter)"></img>
</div>
How would I make my div
draggable like setting draggable = "true";
in html but I am looking for a css only alternative.
What I have tried:
- I had a look at https://css-tricks.com/books/greatest-css-tricks/draggable-elements/ but this answer seem too complex and I feel like there could be a better solution.
- Another question (Setting html tag attributes from css) was looking at setting a HTML attribute in css (in this case
draggable
) and I don't believe that it is possible looking at the answers.