@mihalymarcell86
Posted
Hey Josh,
your solution looks pretty close to the design. The only thing that breaks the layout is the margin you added on the .container
class. Without that, flexbox would be doing the centering just fine. That said, for vertical centering, you must set the flex container to be as high as the viewport (100vh).
Marked as helpful
@j-likes-spicy
Posted
@mihalymarcell86 Thanks Marcell, I went ahead and updated the .container class and confirmed it now works. I'll remember that from now on.