responsive landing page, css grid, flexbox

Solution retrospective
One problem I had was figuring out how to center vertically for any desktop viewport height. Would love to learn how I might have gone about that.. Any other suggestions to improve my code are welcome as well!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @artwired
thank you so much! I'll. give it a try :)
- @byronbyron
Hi Brad
You can remove the
position: absolute; top: 13%;
from#container
and add analign-items: center;
to thebody
, that should center it vertically.@media screen and (min-width: 376px) body { display: flex; align-items: center; justify-content: center; height: 100vh; position: relative; overflow-x: none; } #container { width: 1440px; } }
Hope that helps! 👍
Join our Discord community
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