Changing the color of a SVG image

My code is as follows:

<div>` `<button class="modal-close"><img src="svg"></button>` </div`

I cant change the color of the svg with fill, color or applying fill in the svg file itself. I've also tried !important but neither worked. i've tried the options below and none applied the color.

.modal-close{
color: white;
}

.modal-close img{
color: white;
}

<svg fill="white">
Was this page helpful?