How to move an image in HTML/CSS using x/y coordinates?

Joined
Apr 7, 2022
Messages
1
Reaction score
0
I'm sorry if this is a silly question, as I'm extremely new to coding and can't figure out how to do this. I would like to make a pagedoll for my neocities page. Any help is greatly appreciated!
 
Joined
Mar 11, 2022
Messages
227
Reaction score
32
If you tell me what a pagedoll is.

Well, there is many ways to move something from point A to point B

Code:
<style>
.moveMe{position:absolute; left:50%; top:50%; transition: left 2s, top 4s; cursor:pointer;}
.moveMe:hover{left:10%; top:10%;}
</style>
<div class="moveMe">Hover me</div>

Have a look here
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top