CSS Properties: How to set the cursor so it indicates that the dragged item cannot be dropped here?
Solution:
HTML Code:
Explanation:
- This HTML document sets the cursor style for a <span> element to no-drop using CSS.
- When the user attempts to drag an item over the <span> element, the cursor will change to indicate that dropping the item here is not allowed.
Live Demo:
See the solution in the browser
Supported browser
![]() |
![]() |
![]() |
![]() |
![]() |
Yes | Yes | Yes | Yes | Yes |
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.