1

I'm trying to get elements in a formation relative to a circular parent element like so:enter image description here

Here, there are 5 small squares inside of a larger circle parent. They are equally spaced from each other.

Is there a way to easily make this kind of orientation with JS, CSS, or some other way? I also wanted this form to be expandable to different number of elements like 6 elements and suc, but I'm not sure where to start.

Félix Paradis
  • 5,165
  • 6
  • 40
  • 49
James Huang
  • 848
  • 1
  • 7
  • 35

0 Answers0