Design comparison
Solution retrospective
please provide feedback on what you think.
I tried using css variables.
I have not added any media query since it should work fine with mobile as well.
Community feedback
- @realsalePosted over 2 years ago
Yo! Aswin,
Congrats completing this design, you properly align your component.
And what you did is just right, this design doesn't need the use of
@media
query since the design is just the same in both devices.In addition, I guess what's need improvement is your
padding
it's a little bit inconsistent, adjusting componentswidth
and little tweak inborder-radius
in your image will gives it a better look.Marked as helpful1@i-am-ashwinPosted over 2 years ago@realsale thank you jerry.
thanks for the suggestion of using consistent padding guess i was too much caught up in the text being arranged exactly as the design and forgot that the whole container width could have been adjusted instead.
1@realsalePosted over 2 years ago@i-am-ashwin welcome bro,
You're actually using equal
padding
but you're setting the imagemargin
to auto, resulting in inconsistent spacing.Also when using
max-width
property don't set thewidth
property to absolute in size and larger than themax-width
it will overridden.And regarding to setting
img
dimension make sure you don't accidentally broke theaspect-ratio
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