Design comparison
Solution retrospective
I have a question about the best responsiveness practices for UI that seems to be best suited for mobile screens only. Is it acceptable to build such pages with absolute values like pixels instead of percentages for instance, would it still look alright on a 4K screen?
Community feedback
- @correlucasPosted over 2 years ago
👾 Hello Ibukunoluwa, congratulations for you solution!
You did good with the design, but there's some issues with the
background-color
andbackground-image
.I've some tips for your:
1.The
background-color
andbackground-image
should go inside the body, not on the container, if you insert them on the container they'll be limited by the container width and height properties.2.Use the background
background-position: top; background-size: 100%; background-repeat: no-repeat;
to fix the position and size inside the body.See the fixes below:
body { background-color: hsl(225, 100%, 94%); background-image: url(/images/pattern-background-desktop.svg); background-position: top; background-size: 100%; background-repeat: no-repeat; font-family: 'Red Hat Display', sans-serif; font-size: 0.7rem; /* background-color: rgba(18, 13, 13, 0.707); */ }
Hope it helps, keep it up!
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