@vanderms
Posted
Hi there! Nice job!
About the color of the social media icons in the footer, you can set it to white by:
-
setting the property fill, of the path tag, in the icon file, to white;
-
adding the property
filter: brightness(0) invert(100%)
on the img tag; -
replacing the img tag for a div, with the following properties: background-color white, mask-image: url(path_to_the_icon); width: width_of_the_icon; height: height_of_the_icon; mask-repeat: no_repeat; mask_size: contain; mask-position: center. This solution is a bit tricky and you will need an autoprefixer since the mask properties don't work on chrome without the webkit prefix, but it can be quite usefull when you need to use hover effects;
-
and using an icon library like font-awesome. For social media icons, that's the easiest and, in my opinion, the best way.
Marked as helpful
@AdrianoEscarabote
Posted
@vanderms Thanks for the tip, I was wondering how I was going to change the image color directly in the css which was something I had never done before.