5

So I have this image:

Screenshot

How can I change the gray line to be black using CSS only?

The image is a png file and I'd like to keep the white background.

Edit: this answer is not a duplicate, because it changes the background too, which is not what I want.

jkdev
  • 11,360
  • 15
  • 54
  • 77
Ivan Aramazov
  • 167
  • 1
  • 4
  • 12

1 Answers1

0

You cannot change png images. If you want to change lines for example on hover or another events you need to use svg icons.

Andrew Kovalchuk
  • 897
  • 1
  • 10
  • 29
  • You can, to an extent, change the appearance of PNGs with the CSS `filter` property, if you're willing to deal with the limited browser support profile. – RwwL Feb 25 '19 at 15:00
  • @RwwL yes, i agree with you, but you can't change elements on the icon – Andrew Kovalchuk Feb 25 '19 at 15:01