Home» Forum» Web & Tech» gap with custom cursors

gap with custom cursors

Back to Web & Tech

gang im being stupid </3

trying to use a custom cursor on my page with the same old code i have always used, but instead of aligning the image to the upper left-hand corner of the cursor (where you click), it's aligning the top left-hand corner of the image to the bottom right-hand corner of where your cursor should be. so visually there's a gap between the cursor image and where you can actually hover/click on shit.

my code is literally just this:

body {

    cursor: url('png'), auto;

  }

why it no work </3

You can add an offset to it, so like 

body {
  cursor: url('png') 10 10;
}

would give it a 10 by 10 pixel offset. just keep editing the numbers until it looks right. They can go negative too if you need.

1 reply

@xXx_GeorgeBleedsBlack_xXx worked, ty :)

You must be logged in to reply.