- Instant help with your CSS coding problems

Set cursor to crosshair in CSS

Question:
How to set cursor to crosshair in CSS?
Answer:
.my-selector {
  cursor: crosshair;
}
Description:

To change the default cursor to crosshair use the cursor property on the given element. The cursor CSS property sets the type of mouse cursor, if any, to show when the mouse pointer is over an element.

Share "How to set cursor to crosshair in CSS?"
Related snippets:
Tags:
css, cursor, crosshair, pointer, mouse
Technical term:
Set cursor to crosshair in CSS