Design comparison
SolutionDesign
Solution retrospective
Learned how to add backgorund image, and used flexbox to position my elements.
I am unsure if i am using my margins and paddings correctly in @media
section to positon my elements to fit the mobile version. I feel like there is a lot of details that im changing, is this common practice?
I am using Figma files as a reference btw :)
Any other tips and suggestions are welcome :)
Community feedback
- @danielmrz-devPosted 11 months ago
Hello @D-Salkovic!
Congrats on another excellent solution! 😊
I have one suggestion for this one:
- Since you used flex to position the elements inside the container, you can use
gap
on it to create an equally sized space between the elements inside of it, instead of usingmargin
andpadding
on each element to separate them.
The
gap
property works on every flex or grid container.I hope it helps! 😊
Marked as helpful1 - Since you used flex to position the elements inside the container, you can use
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