I have an html element like so:
<div className="sidebar-nav-main-links">
<Link to="/home">
<i><div id="home-icon"></div></i>
<p>Home</p>
</Link>
</div>
And my css looks like this:
i {
#home-icon {
background-image: image_url('clear-home-icon.png');
width: 20px;
}
}
But I can't get the image to display, let alone do a hover effect. Any ideas as to why this is? Also I'd like to change the image upon hover.