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.
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):
| Element | Default 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.