coderef

Cursor stylesLimited availability

The cursor CSS property styles the pointer, allowing you to provide hints to the user on how to interact with the hovered element.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–67Not supported
68+Supportedsince Jul 24, 2018
Current: 155
Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154
Firefox
1–26Not supported
27+Supportedsince Feb 4, 2014
Current: 157
Safari
1–10.1Not supported
11+Supportedsince Sep 19, 2017
Current: 27
MobileChrome Android
18–67Not supported
68+Supportedsince Jul 24, 2018
Current: 155
Firefox Android
4–94Not supported
95+Supportedsince Dec 7, 2021
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: cursor.

Feature detection

CSS · check before using
@supports (cursor: initial) {
  /* styles that rely on cursor */
}

/* or in JavaScript */
if (CSS.supports("cursor", "initial")) {
  // use it
}

Sub-features

Support for each part of the feature (40). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
cursor11211.2189513.4
cursor.alias1121.531895✕
cursor.all-scroll1121.531895✕
cursor.auto11211.2189513.4
cursor.cell1121.53189513.4
cursor.col-resize1121.531895✕
cursor.context-menu1121.531895✕
cursor.copy1121.531895✕
cursor.crosshair11211.21895✕
cursor.default11211.21895✕
cursor.e-resize11211.21895✕
cursor.ew-resize1121.531895✕
cursor.grab681427116895✕
cursor.grabbing687927116895✕
cursor.help11211.21895✕
cursor.move11211.21895✕
cursor.n-resize11211.21895✕
cursor.ne-resize11211.21895✕
cursor.nesw-resize1121.531895✕
cursor.no-drop1121.531895✕
Show 20 more
Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
cursor.none512351895✕
cursor.not-allowed1121.531895✕
cursor.ns-resize1121.531895✕
cursor.nw-resize11211.21895✕
cursor.nwse-resize1121.531895✕
cursor.pointer11211.21895✕
cursor.progress11211.21895✕
cursor.row-resize1121.531895✕
cursor.s-resize11211.21895✕
cursor.se-resize11211.21895✕
cursor.sw-resize11211.21895✕
cursor.text11211.2189513.4
cursor.url1121.53189513.4
cursor.url_positioning_syntax1791.531895✕
cursor.vertical-text1121.531895✕
cursor.w-resize11211.21895✕
cursor.wait11211.21895✕
cursor.zoom-in37122493795✕
cursor.zoom-out37122493795✕
svg.global_attributes.cursor11211.218951