Design comparison
Solution retrospective
I have a bit of a challenge with the images. Also, how do I get the image for the active state. Media query is also not working.
Thank you and I await feedback
Community feedback
- @HikmahxPosted over 2 years ago
Hey @Hawawu. Great solution. I inspected your code and noticed there isn't any media query in the style.css. I think the reason the hover isn't working maybe because you use
:active
instead of:hover
. You can addwidth: 100%; padding: 16px 40px;
to the body tag and make the width of the card to 100% when in mobile view and using media query at desktop or tablet view change it to the initial 30%. Or, better yet, add amax-width: 432px;
to the card withwidth: 100%;
without needing to use media query.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