Page 143 - CSS
P. 143
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:
• https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events
• https://davidwalsh.name/pointer-events
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:
• https://developer.mozilla.org/en-US/docs/Web/CSS/caret-color
Read Cursor Styling online: https://riptutorial.com/css/topic/1742/cursor-styling
https://riptutorial.com/ 121

