You can simply use the CSS cursor property with the value pointer to change the cursor into a hand pointer while hover over any element and not just hyperlink.
In the following example when you place the cursor over the list item, it will change into a hand pointer instead of the default text selection cursor.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Make the Cursor a Hand Pointer using CSS</title>
<style>
li{
cursor: pointer;
margin: 15px 0;
}
</style>
</head>
<body>
<ul>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
</ul>
</body>
</html>
Use the CSS
cursorPropertyYou can simply use the CSS
cursorproperty with the valuepointerto change the cursor into a hand pointer while hover over any element and not just hyperlink.In the following example when you place the cursor over the list item, it will change into a hand pointer instead of the default text selection cursor.
need an explanation for this answer? contact us directly to get an explanation for this answer