Mario Petkov• 80
@mariby21
Submitted
@xpress-dev
@mariby21
Submitted
@xpress-dev
Posted
You could have set your "arcticle" div to flex, set the flex- direction to column and give it a gap.
.arcticle { display: flex; flex-direction: column; gap: 1rem; } This would nicely space your elements inside your div.
Marked as helpful
I wish to ask if there is another method to place a div at the center of the page without using the transform: translate style i used.
@xpress-dev
Posted
You can set: body { display: flex; justify-content: center; align-items: center; }