I have a div containing some text along with a percentage value (e.g. 78%). I would like to represent this percentage as the background color of the entire div, not just a portion of it.
<div class="my-div">
<div class="percentage-colored" style="width: 78%"></div>
My text
</div>