@mariby21Submitted almost 2 years ago
xpress-dev
@xpress-devAll comments
- @xpress-devPosted almost 2 years ago
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 helpful1 - @Ambe-Mbong-NwiSubmitted almost 2 years ago
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-devPosted almost 2 years agoYou can set: body { display: flex; justify-content: center; align-items: center; }
1