Cursor Styling

Changing cursor type

cursor: value;

visualization

Examples:

ValueDescription
noneNo cursor is rendered for the element
autoDefault. The browser sets a cursor
helpThe cursor indicates that help is available
waitThe cursor indicates that the program is busy
moveThe cursor indicates something is to be moved
pointerThe cursor is a pointer and indicates a link

pointer-events

The pointer-events property allows for control over how HTML elements respond to mouse/touch events.

.disabled {
  pointer-events: none;
}

In this example,

'none' prevents all click, state and cursor options on the specified HTML element [[1]]

Other valid values for HTMl elements are:

  • auto;
  • inherit.
  1. https://css-tricks.com/almanac/properties/p/pointer-events/

Other resources:

caret-color

The caret-color CSS property specifies the color of the caret, the visible indicator of the insertion point in an element where text and other content is inserted by the user's typing or editing.

HTML

<input id="example" />

CSS

#example {
  caret-color: red;
}

Resources: