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 Component

Jen M 130

@jenmurph4610

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


Didn't really have any issues here, just practicing more.

Community feedback

Hassia Issah 50,670

@Hassiai

Posted

There is no need to give the body margin values.

To center the main on the page using flexbox, add min-height:100vh to the body.

body{
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}

For a responsive content, give the main a max-width of 1440px and a width of 80% or a width of 80%.

Use the colors that were given in the styleguide.md found in the zip folder you downloaded.

in the media query for the desktop design, give the main display: flex and flex-direction: row-reverse.

Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here and here

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

0

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