Design comparison
SolutionDesign
Community feedback
- @dtp27Posted over 2 years ago
Hi @dhruvjha206!
Congrats on your first challenge, and welcome to Frontend Mentor! A few recommendations I have on your solution:
- I would use another
p
instead ofspan
so that it's treated like a block component in normal flow instead of an inline component. - It's good that you're using Flexbox to center, but I would add
flex-direction: column;
to make sure that the card and footer are stacked vertically instead of horizontally. - For the
img
width, I would usemax-width: 100%
; so that it responsively adjusts to screen size. - It also seems like you hard-coded the width
.container
to1440px
, which is the total width of the page the design is at. Instead, I would play around with % for the width of the.container
, which will make the card responsively adjust.
Let me know if you have any questions.
Happy coding!
Dan
0 - I would use another
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