CSSApr 4, 2026 ยท Updated Oct 13, 2026 ยท 3 min read

How to Change the CSS Cursor (Every Option Explained)

The cursor communicates interactivity โ€” it tells users what will happen when they click. A pointer says 'this is clickable,' a grab says 'this is draggable,' and a not-allowed says 'this action is disabled.' Using the right cursor improves usability without any visual design changes.

๐Ÿ‘†
Try the CSS Cursor Gallery
Free, no signup
โ†’
DG
Derek Giordano
Designer & Developer
In this guide
01Common Cursor Values02Applying Cursors03Worked Example: What Browsers Do by Default04Custom Cursors05Cursor and Accessibility

Common Cursor Values

pointer โ€” clickable elements (links, buttons). default โ€” standard arrow. text โ€” text selection (inputs, editable areas). grab / grabbing โ€” draggable elements (before and during drag). crosshair โ€” precision selection (image editors, color pickers). move โ€” movable elements. zoom-in / zoom-out โ€” zoomable content. wait โ€” loading/processing. not-allowed โ€” disabled actions. help โ€” elements with tooltips or help text.

Applying Cursors

Set cursor on any element:

.draggable { cursor: grab; }
.draggable:active { cursor: grabbing; }
.disabled-button { cursor: not-allowed; opacity: 0.5; }
.zoomable-image { cursor: zoom-in; }

The cursor applies when the mouse is over the element. The CSS Cursor Gallery lets you hover over each cursor type to see the effect live.

Worked Example: What Browsers Do by Default

We read Chromium 141's computed cursor for common elements with no author CSS (script in our test folder, October 13, 2026):

ElementDefault cursor
<a href>pointer
<button>, <input type="submit">, <select>, <label>default (arrow)
<input type="text">, <textarea>text

So the hand is not the browser's default for buttons, and that matches the definition in CSS Basic User Interface Level 4: pointer "indicates a link". Desktop operating systems also show an arrow over buttons. Adding cursor: pointer to buttons is a common web convention and harmless, but it is a design choice, not a standard; whichever you pick, apply it consistently.

For custom cursor images, keep them small: MDN notes that Chromium and Firefox cap cursor images at 128ร—128 pixels and simply ignore larger ones, and recommends 32ร—32. Always end the list with a keyword fallback โ€” cursor: url(cursor.png) 4 4, pointer; โ€” where the two numbers set the hotspot. Cursors are irrelevant on touch screens, so never use one as the only signal that something is interactive.

Custom Cursors

Use any image as a cursor:

.custom-cursor {
  cursor: url('/cursor.png') 12 12, auto;
}

The two numbers (12 12) set the hotspot โ€” the pixel coordinates within the image that represent the click point. The fallback (auto) is required in case the image fails to load. Use 32ร—32 PNG images with transparency for best results.

Cursor and Accessibility

Don't hide the cursor (cursor: none) unless you're building a full-screen game or kiosk application. Users rely on cursor feedback for orientation. Always provide cursor: not-allowed on disabled elements so users understand they can't interact. Never use cursor: pointer on non-interactive elements โ€” it creates false expectations.

Frequently Asked Questions

How do I change the cursor in CSS?+
Set the cursor property: cursor: pointer for clickable elements, cursor: grab for draggable elements, cursor: not-allowed for disabled elements. Any element can have a custom cursor.
Can I use a custom image as a cursor?+
Yes. Use cursor: url('image.png') x y, auto where x and y define the hotspot coordinates. The image should be 32ร—32 pixels or smaller. Always include a fallback keyword.
What cursor should buttons use?+
Buttons should use cursor: pointer to indicate they're clickable. Disabled buttons should use cursor: not-allowed. This is a strong accessibility and usability convention.
Try it yourself

Use the CSS Cursor Gallery โ€” free, no signup required.

โšก Open CSS Cursor Gallery
DG
Derek Giordano
Written by the creator of Ultimate Design Tools. BA in Business Marketing.