@KristinaRadosavljevic
Posted
Hi there, congrats on completing the challenge :)
As for coloring the image, there's a CSS property called background
, you can assign it to a color, image, gradient, etc. And also, this property can have multiple values, where the values will stack on top of each other. You can use this functionality to very easily add a tint to the image by overlaying it with a semi-transparent linear-gradient
(I used this article to help me figure it out, and you can also check out my solution to see how I implemented it).
There are a couple of other little things I noticed while checking out your solution:
- I don't think you should use this many
<br>
elements in your HTML. I believe the text is supposed to break naturally when using the correct layout. - Instead of using
.stats ul li:nth-child(1)
as a selector, I would personally give these elements a class name, I figure it would make the CSS code a bit cleaner (although, I guess this can be used to practice pseudo-classes, so if that was the intention, you can ignore this point) :) - You can work on making your project a bit more responsive by using things like
rem
units (or some other responsive units),max-width
, media queries, etc.
I hope this helps! :)
Marked as helpful