The syntax for specifying a cursor property is:
selector {cursor: value;}
The most common values used for the cursor property:
|
Custom cursors are cursor files with a .cur (for static cursors) and .ani (for animated cursors) extension. Cursor files are small graphic files, usually 16x16, 32x32 or 48x48 pixels in size.
The syntax for adding a custom cursor is:
selector {cursor: url(path_to_file); }
Because not all browsers and operating systems support custom cursors, it is important to provide an alternative cursor. The syntax for providing an alternative cursor is:
selector {cursor: url(path_to_file), pointer; }
* Note: Custom cursors are support on Windows. On Macintosh, they are supported by Safari 3 but not FireFox 3.