CSS Cursor Viewer: Select a Cursor Style

HELP
help
POINTER
pointer
PROGRESS
progress
WAIT
wait
CELL
cell
CROSSHAIR
crosshair
TEXT
text
VERTICAL TEXT
vertical-text
ALIAS
alias
COPY
copy
MOVE
move
NO DROP
no-drop
NOT ALLOWED
not-allowed
ALL SCROLL
all-scroll
COL RESIZE
col-resize
ROW RESIZE
row-resize
ZOOM IN
zoom-in
ZOOM OUT
zoom-out
GRAB
grab
GRABBING
grabbing

CSS Code

.example { cursor: auto; }

Total CSS Cursor Code Copied!

0

1. What is the CSS cursor property?

The cursor property in CSS is used to specify the type of cursor that should appear when hovering over an element on a webpage. It allows you to change the default cursor style to something more appropriate for specific elements or interaction correct syntax and structure. This helps to identify issues before your code goes live, improving website performance and ensuring consistency.

What are some common cursor values?

Can I use custom images for cursors in CSS?

Yes, you can use custom images as cursors. Here's an example:

Frequently Asked Questions (FAQs)

To change the cursor only when the user hovers over an element, use the :hover pseudo-class:

Yes, changing cursor styles can affect accessibility, especially if users rely on certain cues to navigate. For instance, it's common to use the pointer cursor for clickable elements like buttons and links. If you override this with an unexpected cursor, it could confuse users.

Most modern browsers support a wide range of cursor values, including custom cursors via images. However, the appearance of some cursors (like wait or progress) may vary between browsers and operating systems. Always test the cursor styles in different environments for consistency.

While the cursor property applies to the entire element, you can't directly apply different cursors to different parts of a single element. However, you can achieve this effect by using child elements or pseudoelements with different cursor styles.

If a browser cannot load or render the custom image specified in the cursor property, it will fall back to the next cursor type listed, or to the browser's default cursor.