@macdeesh
Posted
Hello lilKriT, Just to answer to your question, maybe you can add ".." before the URL of the background image :
background-image: url("../img/icon-supervisor.svg");
Instead of
background-image: url("/img/icon-supervisor.svg");
In your place, I will also use the pseudo-element ::after with the specific class and add :
content: url("../img/icon-supervisor.svg");
Marked as helpful
@lilKriT
Posted
@macdeesh I'm not sure that the ../ will help. My code works fine on live server, just not on github :( But I will try it.
How would ::after help? I already insert icons as a background element, to avoid issues with screen readers.
@macdeesh
Posted
@lilKriT I see that it works now. You are welcome...