I have a static page that shows a value in a list. This value represents the percentage of a project that was spent on each individual practice. Is there a way to display a background image in the li
based on the value of the content? I'm sure there is a javascript fix for this but I'm not sure where to start. Javascript is not my strong point at all.
There will be 4 values used (25 / 50 / 75 / 100) and a different image will be displayed depending on the value in the li.
The HTML is:
<div class="col-md-6">
<ul class="list-inline stats">
<li>25<small>Strategy</small></li>
<li>25<small>Design</small></li>
<li>25<small>Production</small></li>
<li>25<small>Marketing</small></li>
</ul>
</div>
Any help would be appreciated. Thank you in advance.