JSFiddle - React, Tailwind, and code Playground
by Leo
HTML
<div id="yyyy"> </div>
CSS
#back{
background:yellow;
width:400px;
height:400px;
}
#yyyy {
background:yellow;
width:200px;
height:200px;
/*
cursor:url(http://files.softicons.com/download/toolbar-icons/black-wireframe-toolbar-icons-by-gentleface/png/16/cursor_arrow.png),auto;
*/
cursor: url(http://cur.cursors-4u.net/cursors/cur-1/cur96.cur),auto;
}
JavaScript
var tt = document.getElementById("yyyy");
tt.onclick = function(e)
{
console.log(e.offsetX+", "+e.offsetY);
}