Design comparison
Community feedback
- @correlucasPosted over 2 years ago
๐พHello Fuhad, congratulations for your solution!
You did a really good solution here, the background is the hardest part and is working well.
You've only to fix the component that isn't responsive due the
width
you've inserted for some elements. You don't need to se theheight
this value come from the elements inside and its paddings/margins. Addmax-width
in order to allow it to contract when the screen resizes. See the code below:.container { max-width: 380px; }
Also avoid to use position relative to center the component elements, using
display: flex
you'll have really more control over these elements.Hope it helps, happy coding bro.
Marked as helpful0@FuhadRaheemPosted over 2 years ago@correlucas wow! this really helps bro. i was struggling with the responsiveness before xD. thanks
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