Design comparison
SolutionDesign
Solution retrospective
Someone knows why the background doesn´t adjust to the page height properly when the page size start to decrease? I mean, the image it´s not vertically centered. Thanks.
Community feedback
- @adrianh42Posted about 3 years ago
You can apply this to your body
background-size: 100% 50vh;
This makes that the background width will be 100% and the height will be 50% of the viewport height.
Marked as helpful1@PedroChaparroPosted about 3 years ago@adrianh42 It works, thanks!
0
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