Design comparison
Solution retrospective
Hello Everyone, Here is my solution for this challenge. I'm not entirely sure how to fix the background to have it fully stretched. Any other advice would be appreciated. Thank You in advance.
Community feedback
- @iannnopPosted almost 3 years ago
Hello!
You can use the
background-size
property to size the background in the same element where you declare the background. You can find the documentation on it hereIf you have one argument for background-size, it'll define the width of the background image, but for this challenge specifically, I felt that the curve wasn't aligning with the design image, so I also adjusted the height by adding a second argument.
Hope this helps!
Marked as helpful1
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