0
div{
    width:200px; height:200px; background:red;
    cursor:url(images/eyedropper.png) 25 25, auto;
}


<div></div>

enter image description here

I have an eyedropper image for cursor like above

my problem is this image point to left bottom corner, but cursor default is point to left top corner. Is any way to change pointer to left bottom or move background image?

Ben
  • 2,562
  • 8
  • 37
  • 62

2 Answers2

0

you can change its direction in photoshop if it is not that neccesary if you want to change direction use transform rotate and set deg according to your need

  div{
        width:200px; height:200px; background:red;
        position:relative;
    }
.cursor{ position:absolute;cursor:url(images/eyedropper.png) 25 25, auto;
            transform: rotate(90deg);}

<div> <div class="cursor"></div></div>
himanshu
  • 1,732
  • 1
  • 11
  • 12
0

the best way to do this via CSS is the resize property.

http://www.w3schools.com/cssref/pr_class_cursor.asp

If I understood you right, you would have to add

nw-resize;

to your cursor selector. You can try all of the said resize functions to get your desired effect.

Frederik Witte
  • 1,167
  • 2
  • 11
  • 35