Design comparison
SolutionDesign
Solution retrospective
What can I do better? What would you do different?
Community feedback
- @FernandoChurrosPosted almost 2 years ago
I have some suggestions you might consider to improve your code:
- To center content, you can use flexbox on the parent of the element you want to align, using the
display: flex
andalign-items: center
(aligns the element on the transverse axis), sets aheight: 100vh
to always center in relation to the user's screen.
Marked as helpful0 - To center content, you can use flexbox on the parent of the element you want to align, using the
Please log in to post a comment
Log in with GitHubJoin 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