I am trying to have the cursor change when the user hovers over the text of my div
rather than the div
itself. I currently have :
div {
width: 500px;
height: 500px;
background-color: green;
}
div:hover {
cursor: pointer
}
<div>
Hello
</div>
Is there a way for me to somehow select just the text of a div
and apply a hover effect on just the text itself.