I have tried puting the path of my image directly into content. then, using background and oher several properties too but dont get to make them appear yet.
this is my HTML:
<div class="side-links-container">
<div class="side-link search">
<a href="#"></a>
</div>
<div class="side-link questions">
<a href="#"></a>
</div>
<div class="side-link contact">
<a href="#"></a>
</div>
</div>
my CSS: (I use .scss)
.side-link {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
width: 4.5rem;
height: 4.5rem;
background: #249987;
&.search a {
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: block;
background: url('../dist/res/img/Lupe-side-menu.png') no-repeat;
}
}
}