Skip to content
Justice Tech School

Cursor, Pointer Events and User Select

cursor changes the pointer shape. pointer-events: none makes an element ignore the mouse. user-select controls text selection.

Example
<style>
.c { cursor: pointer; padding: 8px; background: #0f766e; display: inline-block } .n { user-select: none }
</style>
<span class="c">Pointer cursor</span> <p class="n">You cannot select this text</p>

Exercise

Hand cursor.

cursor: ;

Quiz Test

What does pointer-events: none do?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.