I do not know JavaScript at all. Only CSS and HTML. Help write code, please.
Suppose I have a block A
<div id="a"></div>
He has a style
#a {width:100px; height:100px; position:absolute (или relative, не суть); top:0px}
When you click on this block you need to have
top:100px; left:50px
for example.
As far as I know, using CSS can only be done so that when you click on this block it moves, and when you release the mouse button, it will fall into place. How to make it so that when it clicks on this block, it moves, and with another click it gets back? Very, very, very desirable without JavaScript, because I do not yet know AT ALL, if possible. If not, help write a script template, and at least remotely tell which team is responsible for what. Thank you very much, I hope you will help))
UPD Is it possible to make it so that when he clicks, his properties change? Or did he become id = "a1" instead of id = "a"? Is it possible