Custom Mouse Cursor

CSS gives the cursor property to control the type of cursor to be shown for a particular element. Different mouse cursor indicate to users when they can perform certain actions like re-sizing or dragging elements.

The Cursor Property – It specifies the type of cursor to be displayed when pointing on an element. Various values are given as

Icon Value CSS Code
 Custom Mouse Cursor default style=”cursor: default;”
 Custom Mouse Cursor 2 hand style=”cursor: hand;”
 Custom Mouse Cursor 2 pointer style=”cursor: pointer;”
 Custom Mouse Cursor 2 hand & pointer style=”cursor: pointer; cursor: hand;”
 Custom Mouse Cursor 4 crosshair style=”cursor: crosshair;”
 Custom Mouse Cursor 5 text style=”cursor: text;”
 Custom Mouse Cursor 6 wait style=”cursor: wait;”
 Custom Mouse Cursor 7 help style=”cursor: help;”
 Custom Mouse Cursor 8 move style=”cursor: move;”
 Custom Mouse Cursor 9 e-resize style=”cursor: e-resize;”
 Custom Mouse Cursor 10 ne-resize style=”cursor: ne-resize;”
 Custom Mouse Cursor 13 nw-resize style=”cursor: nw-resize;”
 Custom Mouse Cursor 12 n-resize style=”cursor: n-resize;”
 Custom Mouse Cursor 13 se-resize style=”cursor: se-resize;”
 Custom Mouse Cursor 14 sw-resize style=”cursor: sw-resize;”
 Custom Mouse Cursor 15 s-resize style=”cursor: s-resize;”
 Custom Mouse Cursor 16 w-resize style=”cursor: w-resize;”
 Custom Mouse Cursor 17 progress style=”cursor: progress;”
 Custom Mouse Cursor 18 all-scroll style=”cursor: all-scroll;”
 Custom Mouse Cursor 19 col-resize style=”cursor: col-resize;”
 Custom Mouse Cursor 20 no-drop style=”cursor: no-drop;”
 Custom Mouse Cursor 21 not-allowed style=”cursor: not-allowed;”
 Custom Mouse Cursor 22 row-resize style=”cursor: row-resize;”
 Custom Mouse Cursor 23 url(uri) style=”cursor: url(mycursor.cur);”
 Custom Mouse Cursor 24 vertical-text style=”cursor: vertical-text;”

It is used as

span.crosshair {cursor:crosshair}

span.help {cursor:help}

span.wait {cursor:wait}

The cursor property has the ‘default’ value as its default value. Some browsers do not support *-resize and -scroll keyword.

Custom Pointers – By using the URL value custom cursors can be specified based on an image in CSS as

body{

cursor: url(mycursor.cur) }

Hovering over triggers a different cursor as given for the associated class.

Go To- Certified CSS3 Developer Tutorial
Share this post
[social_warfare]
Gradient Backgrounds
Custom Opacity

Get industry recognized certification – Contact us

keyboard_arrow_up