Design comparison
SolutionDesign
Solution retrospective
I have a question
- how can i add top on bottom padding on mobile version? it seems the padding only work in right and left the body
Any feedback inside or outside of my question are very welcome, i want to learn more, thanks in advice
Community feedback
- @jjfuentes13Posted almost 2 years ago
Hi eldoragon, as for your question, have you tried using margins? The way I achieved mine was to use the following:
margin: 74px auto;
This gave me space above and below the card while providing auto margin to center the card when the website has to be responsive.
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