Design comparison
SolutionDesign
Solution retrospective
I didn't get the solution 100%.
I was having issues getting the white background. Kindly check out my code and let me know your feedback
Community feedback
- @covolanPosted about 1 year ago
Hi Mheyrie 👋
Regarding the background issue, one thing that you can do is move the background color to a body style and give the container div a background color of white.
body { background-color: hsl(212, 45%, 89%);; } .container { background-color: white; }
One way to center the content in this case would be to give the body a display of flex and justify and align the content to center, and give the body a height of 100vh
body { display: flex; justify-content: center; align-items: center; height: 100svh; }
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