Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS cursor property

CSS cursor property

Example

Some different cursors:

span.crosshair {cursor:crosshair}

span.help {cursor:help}

span.wait {cursor:wait}

Try it »


Property definition and usage

The cursor property defines the shape of the cursor used when the mouse pointer is placed over an element's boundary

Default value: auto
Inherited: yes
Version: CSS2
JavaScript syntax: object.style.cursor="crosshair"

Browser support

The numbers in the table indicate the first browser version that supports this property.

property
cursor 5.0 5.5 4.0 5.0 9.6

Attribute values

Value Description
url

The URL of the custom cursor to use.

Note: Always define a normal cursor at the end of this list, in case no cursor defined by a URL is available.

default The default cursor (usually an arrow)
auto Default. The cursor set by the browser.
crosshair The cursor is rendered as a crosshair.
pointer A pointer indicating a link (a hand)
move This cursor indicates that an object can be moved.
e-resize This cursor indicates that the edge of a rectangle can be moved to the right (east).
ne-resize This cursor indicates that the edge of a rectangle can be moved up and to the right (north/east).
nw-resize This cursor indicates that the edge of a rectangle can be moved up and to the left (north/west).
n-resize This cursor indicates that the edge of a rectangle can be moved up (north).
se-resize This cursor indicates that the edge of a rectangle can be moved down and to the right (south/east).
sw-resize This cursor indicates that the edge of a rectangle can be moved down and to the left (south/west).
s-resize This cursor indicates that the edge of a rectangle can be moved down (south).
w-resize This cursor indicates that the edge of a rectangle can be moved to the left (west).
text This cursor indicates text.
wait This cursor indicates that the program is busy (usually a watch or hourglass).
help This cursor indicates that help is available (usually a question mark or a balloon).