Log in / create account | Login with OpenID
DocForge
Programmer's Wiki

CSS/cursor

From DocForge

< CSS

The CSS cursor property provides for the changing of the mouse pointer, or cursor, over various HTML elements.

Standard values:

  • crosshair
  • default
  • help
  • move
  • pointer
  • progress
  • text
  • wait
  • *-resize - where * is one of 'N', 'NW', 'W', 'SW', 'S', 'SE', 'E', or 'NE'

Non-standard values (these are less likely to work across browsers):

  • all-scroll
  • col-resize
  • hand
  • non-drop
  • not-allowed
  • row-resize
  • url
    • The url must point to a .cur file to use as a pointer. The size of the image must be 32x32 pixels or smaller.
    • Firefox requires a second parameter to use as a default value if the url can not be loaded. For example: cursor: url(/images/new_cursor.cur), pointer
  • vertical-text
Do you have information or insights to contribute to this article? Please feel free to edit this page. Ask questions or contribute to the discussion on this article's talk page.