display circular divs all around starting from center

时间:2019-04-08 13:29:56

标签: html css geometry center

is there a way to align circular div around another circular div, as in the image, without defining a fixed position to each element?

<div style="left:50%; margin-left:-125px; width:250px; height:250px; border-radius:125px; background#F00;"></div>

enter image description here

UPDATE:
what about instead going from left to right? I tried using float but it doesn't work as I would like

enter image description here

0 个答案:

没有答案