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

Responsive Stats Preview

@Haswolinsk

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


This was my third completed challenge, initially i'm only using HTML and CSS to improve my skills.

I had difficulty changing the color of the image through the css, if anyone has any suggestions I would be grateful.

Community feedback

Amer Shah 260

@fggdbdsbfd

Posted

👉 "Hello! Congratulations on completing your third challenge! 👏 I noticed that you were asking about changing the color of an image. 🎨"

I hope that helps! Let me know if you have any other questions or concerns.

Here are a few techniques to consider when trying to modify the color of an image using CSS:

• Use CSS filter properties: The CSS filter property provides a variety of options for adjusting the color and appearance of an image. Some of the filter options you could try include grayscale, hue-rotate, and saturate.

• Use a color overlay: Another way to modify the color of an image is to overlay it with a semi-transparent color. You can do this by using a combination of CSS properties, such as background-color, opacity, and position.

• Create a CSS mask: CSS masks can be used to display only certain parts of an image while hiding others. By using a combination of the mask-image, mask-size, and mask-position properties, you can apply a mask that modifies the appearance of the image.

• Use a custom SVG filter: Finally, you could consider creating a custom SVG filter to modify the color of your image. SVG filters can be quite complex, but they offer a great deal of flexibility and control over the final appearance of the image.

👍 By using one or more of these techniques, you should be able to modify the color of your image to suit your needs and create a unique and visually appealing design.

🎉👨‍💻"Enjoy the journey of coding!"👩‍💻💻

Marked as helpful

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