Responsive Product Preview Card

Solution retrospective
There were quite a few things I struggled with and one of them is the responsiveness of the website. I am not sure if I did the sizing right.
I would love some feedback on the work, as I am a beginner :)
Please log in to post a comment
Log in with GitHubCommunity feedback
- @oshudev
Hi EJ 👋. You've done well on your first challenge. About responsiveness, there is a trick that I always use. Do
max-width: (whatever the size you want)
thenwidth: 100%
. In this way, when the view width is less than the setmax-width
, it will naturally scale to whatever the size of the parent element is. Then consider using themain
tag and wrapping the card for accessibility. It goes like this:<body> <main> <section class="Main-Display"></section> <div class="attribution"></div> </main> </body>
Another thing is that you can't use
z-index
if there is noposition
property. And also,align-self
andjustify-self
can't be used if you're not usingdisplay: grid
. You should usealign-items
andjustify-content
onflex-box
. Also, check the report for other issues as well.Marked as helpful
Join 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