Monday, January 10, 2011

CSS Cursor Property

Definition and Usage

The cursor property specifies the type of cursor to be displayed when pointing on an element.
Default value:auto
Inherited:yes
Version:CSS2
JavaScript syntax:object.style.cursor="crosshair"

Property Values

ValueDescription
URLA comma separated of URLs to custom cursors. Note: Always specify a generic cursor at the end of the list, in case none of the URL-defined cursors can be used
autoDefault. The browser sets a cursor
crosshairThe cursor render as a crosshair
defaultThe default cursor
e-resizeThe cursor indicates that an edge of a box is to be moved right (east)
helpThe cursor indicates that help is available
moveThe cursor indicates something that should be moved
n-resizeThe cursor indicates that an edge of a box is to be moved up (north)
ne-resizeThe cursor indicates that an edge of a box is to be moved up and right (north/east)
nw-resizeThe cursor indicates that an edge of a box is to be moved up and left (north/west)
pointerThe cursor render as a pointer
progressThe cursor indicates that the program is busy (in progress)
s-resizeThe cursor indicates that an edge of a box is to be moved down (south)
se-resizeThe cursor indicates that an edge of a box is to be moved down and right (south/east)
sw-resizeThe cursor indicates that an edge of a box is to be moved down and left (south/west)
textThe cursor indicates text
w-resizeThe cursor indicates that an edge of a box is to be moved left (west)
waitThe cursor indicates that the program is busy
inheritSpecifies that the value of the cursor property should be inherited from the parent element


No comments:

Post a Comment