+ 1

Please turn this button into a circle because i can't do it

Please turn this button into a circle because I cant https://code.sololearn.com/W09se6RNOB88/?ref=app

2nd Dec 2020, 7:53 PM
Jordan Kinney
Jordan Kinney - avatar
5 Réponses
+ 2
Use border-radius: 50%; and adjust the width and height to make it a circle (make them equal)
2nd Dec 2020, 8:01 PM
Angelo
Angelo - avatar
+ 2
Nevermind Thank you I did it
2nd Dec 2020, 8:02 PM
Jordan Kinney
Jordan Kinney - avatar
+ 2
You need to make the width and height equal to each other if you want a button to be a circle. Border-radius has to remain 50% as well
2nd Dec 2020, 8:03 PM
Coal
+ 2
thank you
2nd Dec 2020, 8:07 PM
Jordan Kinney
Jordan Kinney - avatar
+ 1
You're welcome, but be careful that border-radius:50px; is not the same as border-radius:50%; The first will not give you a circle if width, height are over 100px
2nd Dec 2020, 8:09 PM
Angelo
Angelo - avatar