Design comparison
Solution retrospective
How do I make the background image of the body fit and responsive to the screen size for the desktop? The background pattern ends abruptly followed by the background color if I view the website in my monitor or stretch the window in my laptop.
Community feedback
- @12KentosPosted over 2 years ago
Hey @arushkumar05,
Nice job on the project, it looks great! What you want to do is add the following style to your body element.
background-size: 100%;
You can play around with the size, if you don't like how 100% makes it look, you would use 100vw or contain, but that should fix your issue,
Keep up the great work!
Marked as helpful1@arushkumar05Posted over 2 years agoHey @12Kentos, Thanks a lot for your input. It worked like charm! :D
1
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