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 site, solution, GRID , FLEXBOX.

@AntonyWilliam

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


So, that was my solution, any inputs?

Community feedback

@Andrii-Rohov

Posted

Hi, nice solution. But you should try to remove width from body tag. And remove from container div (position: absolute; top: 20%; left: 15%;) and try to add (margin: 150px auto;) and see the result

Marked as helpful

1

@AntonyWilliam

Posted

@Andrii-Rohov i did what you said, and now it looks better! thanks!

0

@Victorrrocha

Posted

I know a good practice is to zero the padding in the <body>

You could use flexbox on the <body> to center your container div, instead of setting an absolute value.

Marked as helpful

1
guthribm 130

@guthribm

Posted

Well done! 👍👏

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