+ 7
set width= height and border radius 100% div{ background:#000; width:100px; height:100px; color:#FFF; border-radius:100%; }
19th Sep 2022, 11:05 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 4
Prashanth Kumar border-radius:50%; is sufficient...
19th Sep 2022, 11:11 AM
Bob_Li
Bob_Li - avatar
+ 3
Bob_Li yeah ...
19th Sep 2022, 11:18 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 1
Add div and set width and height with colour except white then set border-radius 50% or100%
20th Sep 2022, 12:22 PM
Achyutarya Raaz
Achyutarya Raaz - avatar
+ 1
By using border-radius: 50%; you can get it; for example: div { width: 50px; height: 50px; background: red; border-radius: 50%; } make sure to use same value for "width" and "height", otherwise you'll get an ellipse instead of a circle.
21st Sep 2022, 5:11 AM
Alexander Repollo
Alexander Repollo - avatar