<^>cursor<^> is used to change the mouse cursor on specific elements. This is especially useful in web apps where different tasks can be done other than clicking. This obviously only works when there's a pointing device:

				
					
.in-progress {

 cursor: progress;

}

				
			

Available Cursors

cursor illustration for: Available Cursors

Hover over the following to see the different cursors available if you're on a desktop/laptop computer:

General/Default Cursors

				
					&lt;div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: auto;"&gt; &lt;strong&gt;auto&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: default;"&gt; &lt;strong&gt;default&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: none;"&gt; &lt;strong&gt;none&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;
				
			

Link Cursor

				
					&lt;div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: pointer;"&gt; &lt;strong&gt;pointer&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;
				
			

Scroll Cursor

				
					&lt;div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: all-scroll;"&gt; &lt;strong&gt;all-scroll&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;
				
			

Status Cursors

				
					&lt;div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: context-menu;"&gt; &lt;strong&gt;context-menu&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: help;"&gt; &lt;strong&gt;help&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: wait;"&gt; &lt;strong&gt;wait&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: progress;"&gt; &lt;strong&gt;progress&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;
				
			

Selection Cursors

				
					&lt;div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: crosshair;"&gt; &lt;strong&gt;crosshair&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: cell;"&gt; &lt;strong&gt;cell&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: text;"&gt; &lt;strong&gt;text&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: vertical-text;"&gt; &lt;strong&gt;vertical-text&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;
				
			

Drag & Drop Cursors

				
					&lt;div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: alias;"&gt; &lt;strong&gt;alias&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: copy;"&gt; &lt;strong&gt;copy&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: move;"&gt; &lt;strong&gt;move&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: no-drop;"&gt; &lt;strong&gt;no-drop&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: not-allowed;"&gt; &lt;strong&gt;not-allowed&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;
				
			

Zoom Cursors

				
					&lt;div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: zoom-in;"&gt; &lt;strong&gt;zoom-in&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: zoom-out;"&gt; &lt;strong&gt;zoom-out&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;
				
			

Grab Cursors

				
					&lt;div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: grab;"&gt; &lt;strong&gt;grab&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: grabbing;"&gt; &lt;strong&gt;grabbing&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;
				
			

Resizing Cursors

				
					&lt;div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: e-resize;"&gt; &lt;strong&gt;e-resize&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: n-resize;"&gt; &lt;strong&gt;n-resize&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: ne-resize;"&gt; &lt;strong&gt;ne-resize&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: nw-resize;"&gt; &lt;strong&gt;nw-resize&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: s-resize;"&gt; &lt;strong&gt;s-resize&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: se-resize;"&gt; &lt;strong&gt;se-resize&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: sw-resize;"&gt; &lt;strong&gt;sw-resize&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: w-resize;"&gt; &lt;strong&gt;w-resize&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: ew-resize;"&gt; &lt;strong&gt;ew-resize&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: ns-resize;"&gt; &lt;strong&gt;ns-resize&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: nesw-resize;"&gt; &lt;strong&gt;nesw-resize&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: nwse-resize;"&gt; &lt;strong&gt;nwse-resize&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: col-resize;"&gt; &lt;strong&gt;col-resize&lt;/strong&gt;&lt;/div&gt;&lt;div class="demo_box" style="display: inline-block; cursor: row-resize;"&gt; &lt;strong&gt;row-resize&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;
				
			

Custom Cursors

You can define custom cursors. Note that not all browsers support svg files for cursors, and <^>.cur<^> files are supported across the board, so it can be a good idea to provide a <^>.cur<^> fallback if you want to use an svg cursor. You can also provide a fallback to one of the non-custom cursors.

You can define a custom position for the cursor hotspot by adding <^>x<^> & <^>y<^> coordinates for where the hotspot should be in the provided custom image.

Note that, when using svg cursors, it's important that your svg has <^>width<^> & <^>height<^> values on the root svg element, or else your cursor won't show. In the following example, our svg file (<^>droplet.svg<^>) starts like this:

				
					
&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42" width="42" height="42"&gt;...

				
			
				
					
.custom-cur {

 cursor: url('/images/droplet.svg');

}



/* With a .cur fallback */

.custom-cur {

 cursor: url('/images/droplet.svg'),

 url('/images/droplet.cur');

}



/* With a custom hotspot */

.custom-cur {

 cursor: url('/images/droplet.svg') 10 12;

}



/* With a non-custom fallback: */

.custom-cur {

 cursor: url('/images/droplet.svg'),

 move;

}

				
			

Here’s an example with a custom cursor:

				
					&lt;div class="demo_box" style="cursor: url('images/css-cursor-property-section-1.png;), url('images/css-cursor-property-section-1.png;), move;"&gt;&lt;strong&gt;Blue Droplet Cursor&lt;/strong&gt;&lt;/div&gt;
				
			

[info]

Browser Support:

As of 2020, only 80% of browsers worldwide support custom cursors according to Can I Use css3-cursors?. But this isn't surprising, many of the browsers that don't support it are mobile-only browsers that have no use for cursors.

Conclusion:

Custom cursors are most commonly used to indicate that an HTML element that's not already a link <a href="..."> is clickable. But it provides a diverse set of additional configurability that could be useful to developers building rich web apps. Keep the following caveats in mind when using custom cursors:

  1. Your users spend most of their time on _other_ sites, so use custom cursors in a way that is consistent with _other_ sites.
  1. Touchscreen users (mobile and tablet) won't see custom cursors.

<style>

.demo_box {

border-radius: 6px;

border: 4px dashed cornflowerblue;

max-width: 70%;

padding: 2em;

margin: .875em;

background: gainsboro;

}

</style>