Bug Bug - 6 months ago 43
HTML Question

CSS Body Cursor or Dragging Cursor

I don't know why but I can't make

body{cursor:*any cursor*}
. Maybe JS Fiddle doesn't support that but it sure supports it to any element so I'm probably wrong.

https://jsfiddle.net/5unnxjLa/

I don't wanna have to use a
<div>
covering the background to change it, I simply want it so that I can stop the mouse changing to the grab/text cursor when I drag the mouse on the body.

Answer

The cursor property isn't supported on the body element, instead select the html element and it should work as expected.

html{cursor:wait}

https://jsfiddle.net/5unnxjLa/1/