0

How to partially move the circle out of screen?

I want to move this circle slightly towards the left so that both ends of the circle are cut equally by both the sides. Is there a way?(I have used px here, so you may not see the same) Here's my code: https://code.sololearn.com/WMz5J0cJB41Q/?ref=app

5th Jul 2020, 3:12 PM
Priyan Vignesh Ramesh
Priyan Vignesh Ramesh - avatar
2 odpowiedzi
+ 8
Priyan Vignesh Ramesh Add this to CSS in #circle: position:fixed //To fix the object at one place as you can see screen is scrollable horizontally because circle size is out of screen size. Then adjust the position using left,right,top or bottom attributes. According to your question, add to #circle- left: -30px; //You can adjust accordingly to your need now.
5th Jul 2020, 3:43 PM
Ketan [#Be Happy 😄]
Ketan [#Be Happy 😄] - avatar
+ 1
Thank you! It works!
5th Jul 2020, 3:54 PM
Priyan Vignesh Ramesh
Priyan Vignesh Ramesh - avatar