Cursor Styling

Other topics

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:

Syntax:

  • cursor: auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing;

Contributors

Topic Id: 1742

Example Ids: 5641,15027,29244

This site is not affiliated with any of the contributors.