CSS Property Value How to - cursor: url(); Make custom cursor on website?








Question

We would like to know how to cursor: url(); Make custom cursor on website?.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body, html {<!--   w  w  w . ja  v a 2 s  . co m-->
  cursor: url(http://www.java2s.com/style/download.png), pointer;
  height: 100%;
}
</style>
</head>
<body>
</body>
</html>

The code above is rendered as follows: