nicodesβ’ 240
@nicodes-dev
Posted
Hi Victoria, two ways that you could use to center your circle is by adding a display flex or grid on it's parent element.
//css flex
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
//css grid
display: grid;
place-items: center;
place-content: center;
//tailwind flex
flex flex-col justify-center items-center
//tailwind grid
grid place-content-center place-items-center
then you can remove the margin from your circle
Marked as helpful
0