Design comparison
SolutionDesign
Solution retrospective
I had a problem with the card flexibility if (I zoomed in it just stays the same)
all the comments are welcome :)
Community feedback
- @correlucasPosted over 2 years ago
πΎHello ASH2001, congratulations for your new solution!
I've checked your code and the reason why the card is not responsive its because you've used
min-width
to thecard
and thehr
withwidth
. If you setmin-width
this means that the container can grow but not contract, if you want the opposite behavior you should usemax-width
that means that the container has a maximum size but can contract..card { background-image: url(images/bg-pattern-card.svg); background-repeat: no-repeat; background-size: contain; max-width: 33.75rem; height: 36.75rem; display: flex; justify-content: center; flex-direction: column; }
π 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