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

Display flex/grid

Luka 320

@lukakavtarra

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


My solution on stats preview card component :) Waiting ur opinions

Community feedback

@Madmanden

Posted

Hi Luka, it's looking good. It's not centered though it seems.

Marked as helpful

1

Luka 320

@lukakavtarra

Posted

@Madmanden Yeah i am working on that rn tho it shows me its centered on my computer :( so if anyone knows how to center better i would love to take some advice :)

0

@Madmanden

Posted

@lukakavtarra I'm on my phone right now so I can't check out your code, but normally you'd center something by setting its margin to "0 auto" (0 is top and bottom, auto is each side, which will center it in the parent container).

Marked as helpful

1
Luka 320

@lukakavtarra

Posted

@Madmanden Thank u so much . it really helped and i changed my solution and it looks better :))

1

@Madmanden

Posted

@lukakavtarra Great Luka! 😄

Marked as helpful

1

@Sam-Guliker

Posted

Hi Luka,

Nice solution you got there, have you checked the span css? It seems a bit off, check the size and the padding :)

Happy coding

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