In my design, I want list items with the "ok" class to show a check mark and those with the "ko" class to display a cross mark.
For testing purposes in this example, thumbs up icons are set as default:
ol {
padding-left: 30px;
list-style: none;
}
li:before {
margin-left: -20px;
margin-right: 10px;
content: '\1F44D';
}
.ok li:before {
content: '\2714';
}
.ko li:before {
content: '\274C';
}
<ol id="opponentsOfCivOL">
<li class="ok">1</li>
<li class="ok">1</li>
<li class="ok">1</li>
<li class="ko">1</li>
<li class="ok">1</li>
</ol>
Any insights on what might be missing for this to function properly?