Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive Stats Preview

eldoragon 40

@eldoragon

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

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

JJ Fuentes 140

@jjfuentes13

Posted

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 GitHub
Discord logo

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