The cursor CSS property specifies the mouse cursor displayed when the mouse pointer is over an element.
Overview tableauto
cursor
cursor: standard values
cursor: url() hotspot-x hotspot-y, keyword;
cursor: url(), keyword
auto
default
none
context-menu
help
pointer
progress
wait
cell
crosshair
text
vertical-text
alias
copy
move
no-drop
not-allowed
e-resize
n-resize
ne-resize
nw-resize
s-resize
se-resize
sw-resize
w-resize
ew-resize
ns-resize
nesw-resize
nwse-resize
col-resize
row-resize
all-scroll
zoom-in
zoom-out
These have varying support across different browsers — see the support section. The examples below feature different boxes with different cursor values set on them, so you can get an idea of what the different ones look like.
url()
function pointing to a custom graphic to use as a cursor, which must be followed by a fallback keyword to use as a pointer if the image is not available (this can be auto
or a standard keyword value). For example, cursor: url(), auto;
You can supply multiple url()
functions separated by commas (url(), url(), auto
for example), and the browser will use the earliest appropriate image it can find. Limitations include:
cursor: url(cursor2.png) 2 2, auto;
. If not specified, the hotspot position defaults to the top left corner of the cursor image, or may be read from the meta data inside the image file, in the case of CUR and XBM format files.
To make the cursor appear like it’s busy
.busy {
cursor: wait;
}
See also Related articles Visual Effects
cursor
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4