Skip to content

Reference · 36 cursor values

CSS Cursor Types: Every Value, Live

Every keyword the CSS cursor property takes, grouped by what it’s for. Hover a card to see the real cursor, click it to copy the CSS. Further down you can try them on a button and a draggable card, and make your own cursor from an emoji or an image.

You’re on a touch screen, so there’s no cursor to hover with. The small drawings show roughly what each one looks like; open this page on a computer to see the real ones.

General

The plain arrow, the browser’s own choice, or no cursor at all.

Selection

Picking text, a cell or an exact point.

Drag & drop

Picking things up, moving them, and saying “not here”.

Resize & scroll

Edges, corners and splitters you can drag. On many systems the one-way and two-way arrows look the same.

Zoom

Click to see bigger, click to shrink back.

Try a cursor on real things

Pick a cursor and move your mouse over the button, the link, the disabled button and the card. Pick “Browser default” to see what each one does with no cursor set at all.

Read the menu
Flat white Drag me sideways

Make a custom cursor

Start from an emoji or your own image. It’s turned into a small PNG right here in your browser (nothing is uploaded), then you pick the hotspot, the one pixel that does the clicking.

Start from
Hotspot (click the big preview, or type)
Image in the CSS
Click a pixel to set the hotspot
Move your mouse here to try it
  • 32 × 32 is the safe size. Chrome and Firefox ignore cursor images larger than 128 × 128, and big ones may be hidden near the browser’s own toolbars.
  • The keyword after the comma is required. Without it the whole line is ignored. It also shows while the image loads, or if it never does.
  • The download is always a PNG, even from an SVG. PNG is the format every desktop browser takes as a cursor.
  • Phones and tablets used by touch have no cursor, so they won’t show it.

What does the CSS cursor property do?

cursor sets the mouse pointer people see while it’s over an element. It doesn’t make anything clickable or change what happens on a click. cursor: pointer on a plain <div> shows a hand, but the div still does nothing until you add a link or a button.

.order-card {
  cursor: pointer;
}
Hover me: order #12, two flat whites

Put it on any element, in a stylesheet or a style attribute. It’s inherited, so setting it on a box also sets it for the text inside, unless a child has its own. Links, text fields and resizable textareas already come with the right cursor, so most of the time you only need it for things you made clickable yourself, like a card or a custom slider.

The cursors you’ll actually use

Out of the 36 values above, a handful cover nearly every real page. Hover the boxes to see each one.

.menu-item {
  cursor: pointer;
}
Latte, $4.20

A clickable row in a coffee menu. Links already get this hand, so you only add it to other things.

button:disabled {
  cursor: not-allowed;
}
Sold out

A button that can’t be clicked right now.

abbr[title] {
  cursor: help;
}
OOS

A short form with a tooltip, like “OOS” for out of stock.

.gallery img {
  cursor: zoom-in;
}
Click to see bigger

A photo that opens larger when clicked.

.crop-area {
  cursor: crosshair;
}
Pick a spot

Anywhere the exact pixel matters, like cropping or picking a color.

body.saving {
  cursor: progress;
}
Saving…

Something runs in the background, but the page still works.

text is the I-beam you see over paragraphs and in inputs. You rarely set it yourself; the browser does it. You’re more likely to switch it off: a card title that isn’t meant to be selected looks tidier with cursor: default.

Should buttons have cursor: pointer?

People disagree on this one, and both sides have a point. Browsers show the plain arrow over a <button>, and the hand has its roots in links: “this takes you somewhere”. Most desktop apps don’t show a hand on their buttons either.

On the other side, a lot of the web has used cursor: pointer on buttons for years, so many people now expect a hand on anything they can click. If a button doesn’t show one, some will pause for a second.

Either choice is fine. What matters is being consistent across your site, and making buttons look like buttons, so nobody has to hover to find out. If you go with the hand, one rule does it:

button:not(:disabled) {
  cursor: pointer;
}

Our HTML Button Generator adds cursor: pointer for you, plus not-allowed on disabled buttons.

A cursor for disabled buttons and links

not-allowed (a circle with a line through it) is the usual pick. Set it on the disabled state, and keep the button looking faded too:

button:disabled,
button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
}

Watch out: if you also add pointer-events: none, the cursor change disappears, because the mouse no longer notices the element at all. Pick one or the other. And remember the cursor is only a hint: a phone has none, so the faded look and the real disabled attribute carry the message.

grab and grabbing for things you drag

The open hand says “you can pick this up”; the closed hand says “you’re holding it”. Swap them while the mouse button is down:

.volume-knob {
  cursor: grab;
}
.volume-knob:active {
  cursor: grabbing;
}
Press and hold me

:active covers a simple press. For a real drag made with JavaScript, add a class like is-dragging to the item when the drag starts and remove it when it ends, so the closed hand stays even if the mouse runs ahead of the item. The card in the “Try a cursor” box above works that way. Older code sometimes has -webkit-grab next to it; current browsers don’t need the prefix.

Custom cursors with an image

You can use your own picture as the cursor. The line looks like this:

.coffee-menu {
  cursor: url("cup.png") 4 4, pointer;
}
  • url("cup.png") is the image. The path is relative to the CSS file, not the HTML page, which is a common reason a cursor doesn’t show.
  • 4 4 is the hotspot: the pixel that does the clicking, counted from the top-left corner. For an arrow it’s the tip, for a crosshair the middle. Leave it out and a PNG clicks from 0 0, the top-left corner.
  • pointer at the end is the fallback, and it isn’t optional. Without a keyword the browser throws the whole line away. It also shows while the image is still loading.

Keep the image small. 32 × 32 pixels is the size that works everywhere. Chrome and Firefox ignore cursor images larger than 128 × 128, and larger cursors can be hidden when they overlap the browser’s own toolbars. PNG is the safe format. SVG cursors work in current desktop browsers, but test yours before you rely on it, and give the <svg> a width and height: the CSS spec only requires browsers to take SVG cursors that have a size of their own.

<svg xmlns="http://www.w3.org/2000/svg"
     width="32" height="32" viewBox="0 0 32 32">
  <circle cx="16" cy="16" r="10" fill="#4d7c0f"/>
</svg>

You can list more than one image, and the browser uses the first one it can load. That’s a way to offer an SVG with a PNG behind it:

.coffee-menu {
  cursor: url("cup.svg") 4 4, url("cup.png") 4 4, pointer;
}

The custom cursor maker above does the fiddly part: it draws an emoji or your image into a PNG, lets you click the hotspot, and writes the line with the fallback. Paste the result into your stylesheet, or tidy a whole file with the CSS Formatter.

Custom cursors and accessibility

A fun cursor can make a page harder to use. A few things to keep in mind:

  • Don’t hide the cursor with cursor: none on a normal page. People who already have trouble finding a small pointer lose it completely.
  • Put the hotspot where the picture points. If your cursor is a pointing finger but it clicks from the middle, people will miss small links by a few pixels and won’t know why.
  • Many people make their pointer bigger in their system settings. A custom image is drawn at the size of your image, so it may not follow that setting. Use custom cursors on a small area, like a game or a drawing canvas, rather than the whole page.
  • Don’t use the cursor as the only sign of anything. wait doesn’t tell a screen reader user that the page is busy, and a disabled button needs to look disabled.

What this page can’t show you

The cursor pictures come mostly from your operating system (the browser fills in a few it doesn’t have), so wait is a spinning circle on Windows and something else on a Mac. The small drawings on the cards are rough sketches, there for phones and for a quick look.

A few values look like something else on some systems. Chrome and Firefox show context-menu as a plain arrow on Windows. On Windows and macOS, no-drop looks the same as not-allowed, and on Windows all-scroll looks the same as move. Touch screens show no cursor at all, and an iPad with a trackpad only changes its round pointer for text.

Frequently asked questions

How do I change the cursor to a hand in CSS?

Use cursor: pointer on the element, for example .card { cursor: pointer; }. That gives the same pointing hand links have. You may see cursor: hand in very old code: that was an Internet Explorer value and no current browser needs it.

Should buttons have cursor: pointer?

There is no single right answer. Browsers show the plain arrow on a <button> by default, and some designers prefer to keep it that way because the hand traditionally means "this is a link". Many sites add cursor: pointer to buttons anyway, because people expect a hand on anything clickable. Pick one rule and use it everywhere on your site, so people don’t have to guess.

Which cursor should I use for a disabled button?

Most sites use cursor: not-allowed, for example button:disabled { cursor: not-allowed; }. Keep the button looking faded too, since phones and tablets have no cursor to show. One catch: if you also set pointer-events: none on the button, the cursor change won’t show at all, because the mouse no longer “sees” the button.

How do I make a custom cursor with an image?

Write cursor: url("cursor.png") 16 16, pointer;. The two numbers are the hotspot, the pixel that does the clicking, counted from the top-left corner of the image. The keyword after the comma is required: the browser uses it if the image doesn’t load. A 32 × 32 PNG is the safe size. The builder on this page makes the PNG and the CSS for you, from an emoji or your own image.

Why is my custom cursor not showing?

The usual reasons: the fallback keyword is missing (url(...) on its own is invalid, so the whole line is ignored), the image path is wrong (it’s relative to the CSS file, not the HTML page), or the image is too big. Chrome and Firefox ignore cursor images over 128 × 128 pixels, and big cursors may be hidden near the browser’s own toolbars. An SVG without a width and height can also be skipped. Try a 32 × 32 PNG first.

What is the difference between grab and move?

grab is an open hand that says “you can pick this up”, and grabbing is the closed hand you switch to while the drag is happening. move is a four-way arrow on most systems and is the older way to say “you can drag this”. For maps, sliders and sortable lists, grab and grabbing are the common choice now.

Can I hide the cursor with CSS?

Yes, cursor: none hides it over that element. Use it only where something else shows the position, like a game that draws its own crosshair. Hiding the cursor on a normal page leaves people lost, and it is hard on anyone who already struggles to find a small pointer on the screen.

Do CSS cursors work on phones?

Not with touch. A phone or tablet used with a finger has no cursor, so the cursor property does nothing there. On an iPad with a trackpad or mouse, Safari shows a round pointer and only changes its shape for text. Never rely on the cursor alone to tell people something is clickable or disabled.