Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide cursor in Chrome (and IE)

I have the following CSS that hides the mouse cursor for anything on the web page. It works perfectly in Firefox, but in IE and Chrome, it doesn't work.

html {
    cursor: none;
}

In Chrome, I always see the mouse pointer. In IE, however, I see whatever cursor was last 'active' when it entered the screen. Presumably it's keeping the last selection instead of removing it.

like image 607
Chris Avatar asked Apr 14 '10 08:04

Chris


People also ask

How do I hide the cursor in Chrome?

1. Tapping the period key on the keyboard: In case you see the cursor still visible on the screen while you are watching a video or movie, then you have to tap the period key on the keyboard. It will help you to hide the cursor from view instantly.

How do I temporarily hide my cursor?

You will see a “Mouse Properties” window. At the top of this window, click the “Pointer Options” tab. The “Pointer Options” tab displays various mouse settings. Here, in the “Visibility” section, enable the “Hide Pointer While Typing” option.


1 Answers

This property cursor:none; isn't part of the standard

See here w3c cursor CSS properties.

You might want to look into hiding it with Javascript or JQuery.

Also, look at blank cursor files here.

And one last link to an ajax solution.

Chrome has had this issue since it was built, there have been reports sent to the people at Chromium, and I assume they are working on it.

Also, don't trust that anything would work in IE. Ever. :P

like image 151
Kyle Avatar answered Oct 07 '22 18:10

Kyle