WEB TUTORIALS
PRACTICE EXAMPLES
HTML REFERENCES
CSS REFERENCES
PHP REFERENCES
Advertisements

How to Change the Cursor into a Hand Pointer on Hover using CSS

Topic: HTML / CSSPrev|Next

Answer: Use the CSS cursor Property

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;
    }
</style>
</head>
<body>
    <ul>
        <li>List item one</li>
        <li>List item two</li>
        <li>List item three</li>
    </ul>
</body>
</html>

Related FAQ

Here are some more FAQ related to this topic:

Advertisements
Bootstrap UI Design Templates

Your Feedback:

We would love to hear from you, please drop us a line.