Design comparison
SolutionDesign
Community feedback
- @correlucasPosted over 2 years ago
👾 Hello Priyanka Reddy, congratulations for your solution!
Your component has all the design elements good done, but isn't responsive yet. This is due the
width
you've set for the#main
and all the 3 cards inside this container. You need to replace thiswidth
withmax-width
in order to have component responsive and contracting when the screen scales down. I did some fixes to your code, see below:#main { max-width: 950px; height: 550px; border-radius: 20px; margin: auto; margin-top: 70px; font-family: 'Lexend Deca', sans-serif; display: flex; } #sedans, #suvs, #luxury { max-width: 33%; }
Pay attention that in this case, this challenge, there's no need to use
id
, give preference forclass
and theid
use it when you work withforms
or Javascript.Hope it helps 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