I would like to change the cursor to an SVG when the cursor is within #square
. I have attempted below by minifying the SVG and setting the cursor
value in CSS, however, I'm getting the error:
Invalid Property Value
What am I doing wrong here? Any help to greatly appreciated.
#square {
height: 250px;
width: 250px;
background-color: yellow;
cursor: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' height='16' width='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E");
}
<div id="square"></div>