0

I'm trying to get the cursor to change when I hover over an element but I cannot seem to get it to work.

My code so far:

.more_scrolly{
  cursor: url("images/cross.png"), auto!important;
  height: 36px;
  width: 36px;
}
<a href="#one" class="more_scrolly" >learn more</a>
Alex Ljamin
  • 737
  • 8
  • 31

2 Answers2

1

Your syntax is incorrect and you need to provide a fallback in case your provided cursor fails to load.

cursor: url("images/cross.png"), auto;
0

.CursorClass {
  cursor:url(http://www.javascriptkit.com/dhtmltutors/cursor-hand.gif), auto;
}
<a href="#" class="CursorClass" >Click Me </a>
Lalji Dhameliya
  • 1,729
  • 1
  • 17
  • 26