I have a static page that shows a value in a list. This value represents the percentage of the project that was spent on each individual practice. Is there a way to display the background image in libased on the content value? I'm sure there is a javascript fix for this, but I'm not sure where to start. Javascript is not my forte.
4 values will be used (25/50/75/100), and a different image will be displayed depending on the value in li.
HTML:
<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 greatly appreciated. Thank you in advance.
source
share