0
How can I select the position of a circle with css
3 Respostas
+ 2
Study the code to understand how to use js to control position of a circle.
The button click event gets the input values for the x and y positions and sets the top and left position of the circle to those values.
Note that the circle must be set with css selector position: absolute in order top and left css selectors can function.
https://code.sololearn.com/W44gIZd0Rclt/?ref=app
+ 1
Use the display property or move the box with leftXpx: and top:Ypx, remember to use position:relative; //absolute.
Happy coding 👍