user5746931
user5746931

Reputation:

Hide Cursor doesn't work (CSS)

My question is quite similar to another one on Stack Oweflow, however the answer on the other question didn't help me.

So I tried to hide the cursor on a webpage by writing following code in my stylesheet:

* { cursor: none; }

It works fine on some parts of the website but in other parts you can see it. Anyone had a similar problem and/or knows the answer?

Upvotes: 2

Views: 5612

Answers (1)

CoderPi
CoderPi

Reputation: 13211

It will still show on elements, that have their own cursor: ... defined.

You can use * { cursor: none !important; } to avoid this and make it work ... but some might say never use !important

Upvotes: 7

Related Questions