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

@BobbyOffiong

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


any positive feedback is welcomed, thank you!

Community feedback

Hassia Issah 50,670

@Hassiai

Posted

wrap your html content in the main tag<main> and <h3> with <h1> to fix the accessibility issues. click here for more on web-accessibility and semantic html

To center a content on a page, add min-height:100vh; display: flex; align-items: center: justify-content: center; or min-height:100vh; display: grid place-items: center to the body.

 sample: To center .container on the page using flexbox:
body{
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
 sample: To center .container on the page using grid:
body{
min-height: 100vh;
display: grid;
place-items: center;
}

For the color of the image, add a background-color of soft violet, background-blend-mode: multiply and opacity:0.8 to .pic-div. there is no need for background position.

.pic-div{
background-image: url();
background-size: cover;
background-color: hsl()
background-blend-mode: multiply;
opacity: 0.8;
}

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

``

Marked as helpful

0

@BobbyOffiong

Posted

@Hassiai thank you!

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