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

Stats Preview Card

#sass/scss
Mr Skyner 30

@MrSkyner

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


Hello! This is my solution for the project named Stats Preview Card!

Any feedback it's helpful! Thanks for checking and feedback!

Community feedback

jerry 320

@realsale

Posted

Yo! @MrSkyner,

Congrats submitting your solution for this design.

The obvious thing that might need refinement is your alignment, I've noticed you haven't use flex nor grid and hardly relied on margin and some fixed dimensions.

I recommend you to try and learn flex and/or grid as these are the modern layout approach Beginners guide to flexbox | Beginners guide to grid

Also you don't have to explicitly define the containers height, Just set the similar width as the design, and let the image take the half of it and leave image height: auto, This will keep the image proper aspect-ratio

Marked as helpful

1

@purnimakumarr

Posted

Hi Skyner, your solutions look really good. But it isn't centered properly. Here's what you can do..

body {
    height: 100vh;
    display: grid;
    place-items: center;
}

And get rid of the margin on the card component.

1

@alfredthompsonOvie

Posted

Hi Mr skyner, looks nice, but you could do with a little bit of padding to the contents

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