I am working on a static page where I need to showcase the percentage of a project spent on different practices. Is it possible to set a background image in the li
element based on the value displayed? I believe javascript could provide a solution for this, but it's not my area of expertise.
There are 4 potential values (25 / 50 / 75 / 100) and each one should trigger the display of a different image within the li element.
The current HTML structure is as follows:
<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>
I would greatly appreciate any guidance or assistance on how to achieve this. Thank you so much in advance.