Design comparison
SolutionDesign
Community feedback
- @correlucasPosted about 2 years ago
πΎHello Akash Nagindar, congratulations for your new solution!
Your solution is great bro, but your background is not displaying full width because you've missed this property
background-size: contain;
instead of usingcover
.Here's your code with the fixes:
body { font-size: 16px; line-height: 1.3; font-family: 'Red Hat Display', sans-serif; background: var(--Pale-blue); background-image: url(../images/pattern-background-desktop.svg); background-position: center top; background-repeat: no-repeat; background-attachment: fixed; background-size: contain; }
π I hope this helps you and happy coding!
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