CSS cursor Property Explained

What the CSS cursor property does, with an example.

Published November 5, 2026

cursor sets the mouse pointer shown over an element, such as pointer for clickable things, text for editable text, not-allowed for disabled actions and grab for draggable items.

How it works

Pointer cursors signal interactivity. Do not use pointer on non-interactive elements.

Custom image cursors are possible but should be used sparingly.

Values and effects

cursor: pointer; → hand: clickable
cursor: text; → I-beam
cursor: not-allowed; → disabled
cursor: grab; → draggable
cursor: wait; → busy
cursor: zoom-in; → zoom

Practical examples

Clickable card

.card { cursor: pointer; }

Disabled

button:disabled { cursor: not-allowed; }

Draggable

.handle { cursor: grab; }
.handle:active { cursor: grabbing; }

Common mistakes

  • Pointer cursor on elements that do nothing.
  • Hiding cursors entirely.
  • Using tiny custom cursors that are hard to see.

Key takeaways

  • cursor in one line: cursor sets the mouse pointer shown over an element, such as pointer for clickable things, text for editable text, not-allowed for disabled actions and grab for draggable items.
  • Inspect it live in DevTools → Styles.
  • Test across browsers and screen sizes.

FAQ

Does cursor work on touch?

No, touch devices have no mouse pointer.

Is cursor supported in all browsers?

Yes in all modern browsers; check caniuse.com for edge cases.

More CSS articles