Please turn this button into a circle because i can't do it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
xJAYOx
xJAYOx - avatar
5 Answers
+ 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
xJAYOx
xJAYOx - 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
xJAYOx
xJAYOx - 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