P
Josh Pickard• 130
@joshpickardme
Posted
You can centre the content in the middle of the page by having a div or a section that is flex with a min-height: 100vh
justify-content: center
and align-items: center
0
What are you most proud of, and what would you do differently next time?
Using CSS Flexbox in my code.
What challenges did you encounter, and how did you overcome them?
Centering the container vertically
What specific areas of your project would you like help with?
Nothing for now.
@joshpickardme
Posted
You can centre the content in the middle of the page by having a div or a section that is flex with a min-height: 100vh
justify-content: center
and align-items: center
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord