Responsive card page using CSS Flexbox and Grid

Solution retrospective
This was the first time I tried a mobile-first approach, which seemed easier. Still, I would love to have any feedback, advice or suggestions
Please log in to post a comment
Log in with GitHubCommunity feedback
- @darryncodes
Hi Niladri,
Great solution, almost a perfect match!
Some great feedback from Buhaianu, in addition:
- you could clear up your accessibility report if you change
<div class="attribution">
for<footer class="attribution">
- your design is jumping because you're adding a border to the button on hover, add it before and it should solve this
- as this design is one dimensional i think the more suitable option would be to use flexbox, here is some information that might explain what i mean further
Overall though great effort!
Marked as helpful - you could clear up your accessibility report if you change
- @remusbuhaianu
Good job on completing the challenge, @NiladriMallik!
Your solution looks pretty good overall. I have a few suggestions for you that I hope will prove useful:
-
The background color is different. It's supposed to be a darker gray
-
When you hover on one of the buttons, the card's height increases. That shouldn't happen.
-
You should either keep a 3 columns or a 1 column layout when going into the tablet screen sizes. Currently, when you reach that resolution, you have 2 columns one next to another and the third is underneath.
-
Consider using fractions for your grid instead of %
Hope this helps. Keep up the good work!
Marked as helpful -
- @NiladriMallik
Thank you @Remus432 for the advice.
- Yes, I had forgotten the background colour, added that now.
- I couldn't think of a way to solve that problem, have solved it now.
- Yes, I was confused about the layout of the tablet screen, I thought a grid layout with 2 columns would look good. However, I have solved that too.
- And thank you for the fractions advice, shall certainly look that up.
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