I want to use awesome font icons for layout, which is automatically generated, and I can’t change it.
The following markup will display a list ol. I want to replace numbers with icons.
<ol class="flex-control-nav">
<li><a class="flex-active">1</a></li>
<li><a class="">2</a></li>
<li><a class="">3</a></li>
<li><a class="">4</a></li>
<li><a class="">5</a></li>
</ol>
Here is what I am trying:
.flex-control-nav a:before {
font-family: FontAwesome;
font-size: 30px;
display: inline-block;
content: '\f137';
}
Problem:
Using the code above, I can display the icons in each element of the list, however, there are also numbers. I want to hide the numbers. I tried to use text-indent, but it also removes the icons.
source
share