Cursors
Various types of cursors can be displayed to the user using the CSS cursor property. This property is supported on most browsers. It displayed when pointing over the elements. There are various properties of the cursor. In this article, we try to define some essential properties of the cursor.
Default value: Auto
Inherited: Yes
Applies to: all elements
Computed value: URL->absolute else specified.
E.g., [ [ < url > [ < x > < y > ]?, ] * [ auto | default | none| context-menu |.....] ]
Animation type: discrete
We do not have any size limitation for the cursor.
These cursors can be grouped into the following types:
- General Cursors
- auto: cursor setup by the browser.
- default: A default cursor.
- none: no cursor is rendered.
- Links and Status Cursors
- context-menu: context menu is available at the cursor point.
- help: help is available.
- pointer: link is available.
- progress: the program is busy in progress.
- wait: program is busy.
- Selection Cursors
- cell: cell selection is indicated by the cursor.
- crosshair: cursor changes to crosshair.
- text: text may be selected.
- vertical-text: vertical text can select.
- Drag and drop Cursors
- alias: something is to be created.
- copy: copying with the cursor.
- move: something is moved.
- no-drop: can not drop the dragged item.
- not-allowed: restricted action.
- grab: can grab something (open palm).
- grabbing: can grab something (closed palm).
- Resizing and scrolling Cursors
- all-scroll: scroll in any direction.
- col-resize: column can be resized.
- row-resize: row can be resized.
- n-resize: edge of the box can move up.
- e-resize: edge of the box can move right.
- s-resize: edge of the box can move down.
- w-resize: edge of the box can move left.
- ne-resize: edge of the box can move up and right.
- nw-resize: edge of the box can move up and left.
- se-resize: edge of the box can move down and right.
- sw-resize: edge of the box can move down and left.
- ew-resize: bi-directional resize (left or right).
- ns-resize: bi-directional resize (up and down).
- nesw-resize: bi-directional resize (45 degrees tilted towards the right).
- nwse-resize: bi-direction resize. (45degrees tilted towards the left).
- Zoom and Grab Cursors
- zoom-in: you can zoom in.
- zoom-out: you can zoon-out.
Example:
Knowledge2life
alias
all-scroll
auto
cell
col-resize
copy
crosshair
default
e-resize
ew-resize
grab
grabbing
help
move
n-resize
ne-resize
nesw-resize
ns-resize
nw-resize
nwse-resize
no-drop
none
not-allowed
pointer
progress
row-resize
s-resize
se-resize
sw-resize
text
url
w-resize
wait
zoom-in
zoom-out
OUTPUT:
Knowledge2life
alias
all-scroll
auto
cell
col-resize
copy
crosshair
default
e-resize
ew-resize
grab
grabbing
help
move
n-resize
ne-resize
nesw-resize
ns-resize
nw-resize
nwse-resize
no-drop
none
not-allowed
pointer
progress
row-resize
s-resize
se-resize
sw-resize
text
url
w-resize
wait
zoom-in
zoom-out