Design comparison
SolutionDesign
Community feedback
- @ledesmxPosted about 1 year ago
Hi Miguel ๐
Great job on your solution!
Here are some recommendations for you:
I suggest to align the content in the center
- First of all, I would add
display: flex;
andflex-direction: column;
inside the body tag. Flexbox provide us a better method for align items. - Then, add
justify-content: center;
aligning the items in the y-axis. - Lastly, add
min-height: 100vh;
setting the height to 100vh or more.
Code to add:
body { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
Marked as helpful0 - First of all, I would add
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