Design comparison
SolutionDesign
Solution retrospective
What should be improved?
Community feedback
- @correlucasPosted about 2 years ago
πΎHello Ionut, congratulations for your new solution!
Your solution is almost done, all you've missed here is the general content alignment, that is not centered here. You need to add
flex
andmin-height: 100vh
to the body to have the alignment.See how can you fix it:
body { min-height: 100vh; background: url(../img/bg-desktop.svg) no-repeat center center fixed; background-size: cover; background-color: hsl(257deg, 40%, 49%); display: flex; align-items: center; justify-content: center; }
π I hope this helps you and happy coding!
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