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 with HTML and CSS

Giorgi 200

@siduki

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 everyone, my another little work with HTML and CSS. I'm new in responsive design, please, if you check my code, give me some advices if any. Thank you.

Community feedback

Lucas 👾 104,420

@correlucas

Posted

👾Hello Giorgi, Congratulations on completing this challenge!

🎨 Here are some tips to improve your component design:

1.The font sizes are a bit off, for the paragraph and the stats section use at least 1 rem for the size to make it readable:

.main__article {
    color: var(--main-paragraph);
    font-size: 1rem;
    line-height: 1.25rem;
    padding-right: 3.125rem;
}

2.The way you’ve applied the purple color is fine, but if you want the exact color tone of color of the challenge designs, you need to use mix-blend-mode to make the color blend between the image and the background-color of the container. See the steps below to apply to the img or picture selector:

img {
mix-blend-mode: multiply;
opacity: 75%;}

✌️ I hope this helps you and happy coding!

0

Giorgi 200

@siduki

Posted

@correlucas Thank you Lucas. I changed font size, I just make it from design picture, how I saw it. About picture, I added code, what you wrote to img selector and background selector too, but color was more black/white, instead purple. I changed values, but nothing.

1
Lucas 👾 104,420

@correlucas

Posted

@siduki Add to the div a background color to make the color blend:

.img__container {
    background-color: #9d409d;
    position: relative;
    display: inline-block;
}
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