0

How can I select the position of a circle with css

6th Jan 2023, 8:28 PM
Kaito Gami
Kaito Gami - avatar
2 ответов
+ 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
7th Jan 2023, 2:35 AM
Calviղ
Calviղ - avatar
+ 1
Use the display property or move the box with leftXpx: and top:Ypx, remember to use position:relative; //absolute. Happy coding 👍
6th Jan 2023, 9:33 PM
NinjaGamer
NinjaGamer - avatar