Design comparison
SolutionDesign
Community feedback
- @correlucasPosted over 2 years ago
πΎHello Akash Nandi, congratulations for your new solution!
I've some tips for your to fix the background that is not scaling properly:
Replace the
background
in the body instead of the container to have it display full width:body { background: url(./images/bg-desktop.svg) no-repeat center left/ cover; min-height: 100vh; background-color: hsl(257, 40%, 49%); color: white; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; }
Here's is the properties you've to remove to have the proper alignment:
@media screen and (min-width: 1280px) .container { /* min-width: 90vw; */ /* max-width: 1440px; */ /* background: url(./images/bg-desktop.svg) no-repeat center left/ cover; */ display: flex; /* border: 1px solid black; */ /* margin-inline: 1rem; */ text-align: left; } .container { /* max-width: 375px; */ /* margin-top: 10vh; */ padding: 2rem; /* background: url(./images/bg-mobile.svg) no-repeat top center/ contain; */ }
π 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