Design comparison
SolutionDesign
Community feedback
- @LucasGabriel2806Posted 2 months ago
You can set the height: 100vh to let the background-color fill the entire screen. You can also use FlexBox to vertically center your div. Try using this set of rules: body { display: flex; justify-content: center; align-items: center; }
Marked as helpful0
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