Having this snippet:
.my-style {
padding: 0;
list-style-type: none;
}
.my-style i {
margin-right: 5px;
}
.my-style li {
margin-bottom: 8px;
}
.my-style li::before {
content: '\f00c';
display: inline-block;
margin-left: -15px;
}
<div>
<ul class="my-style">
<li> This is the first line</li>
<li> And this is the second line</li>
</ul>
</div>
I want to put a font-awesome icon in front of each <li>
and I cannot add it like <i class="far fa-close"></i>
because it will break something else.
There is no icon appearing but a white square instead like this:
Is it something wrong with the content styling?
There is font-awesome installed and there is a file fontawesome.css
which contains this line among others:
.fa-check:before {
content: '\f00c';
}