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

Nikolaβ€’ 170

@Niko21122323

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Adrianoβ€’ 34,110

@AdrianoEscarabote

Posted

Hi Nikola, how are you? I really liked the result of your project, but I have some tips that I think you will enjoy:

I noticed that the content is very large in higher resolutions, due to relative measurement units, prefer to use fixed measurement units in higher resolutions, for example:

.cotainer {
    margin: 0 auto;
    max-width: 1440px;
}

To get closer to the photo overlay effect, you'd better use mix-blend-mode. All you need is the div under the image with this background color: hsl(277, 64%, 61%); eposition mix-blend-mode: multiply and opacity: 80% on the image or apply image to activate the overlay by blending the image with the div's color. See the code below:

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

You can read this content which is explaining these effects with mix-blend-mode: click here

The rest is great!

I hope it helps... πŸ‘

Marked as helpful

1

Nikolaβ€’ 170

@Niko21122323

Posted

@AdrianoEscarabote Hello Adriano, thanks for the feedback. I started learning HTML and CSS 2 months ago and I take every piece of advice, so I really appreciate your help with this project. I visited your profile multiple times since I found this website and I really love your work!

1
Adrianoβ€’ 34,110

@AdrianoEscarabote

Posted

@Niko21122323 thanks!! happy coding!!

0

@VCarames

Posted

Hey there! πŸ‘‹ Here are some suggestions to help improve your code:

  • To properly center your content to your page, you will want to add the following to your Body Element (this method uses CSS Grid):
body {
    min-height: 100vh;
    display: grid;
    place-content: center;
}

More Info:πŸ“š

[Centering in CSS][https://moderncss.dev/complete-guide-to-centering-in-css/]

  • The only heading in this component is the β€œGet insights that help your business grow” everything else will be wrapped in a paragraph element.
  • The statistics at the bottom **are a list **, so it should be built using an unordered List element.
  • This challenges requires the use of two images πŸŽ‘ for different breakpoints. The picture element will facilitate this.

Here is an example of how it works: EXAMPLE

Syntax:

  <picture>
    <source media="(min-width: )" srcset="">
    <img src="" alt="">
  </picture>

More Info:πŸ“š

https://www.w3schools.com/html/html_images_picture.asp

  • To get the image to look like the FEM example, you are going to want to use the Mix-Blend-Mode along with the Multiply value and include a Opacity with the value of 0.8.

Code:

img {
  opacity: 0.8;
  mix-blend-mode: multiply;
}

If you have any questions or need further clarification, feel free to reach out to me.

Happy Coding! πŸ‚πŸ¦ƒ

Marked as helpful

0

Nikolaβ€’ 170

@Niko21122323

Posted

@vcarames Hello. Thank you for letting me know how to improve my code. I'm new to coding so feedback like this means a lot to me. You are a great person and again thanks for the tips!

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