I have a parent div which has child divs which are dynamically added under that. I want to fill the parent div completely by children based on their width. The combined width of children is always equal to 100.
I have tried this so far :
<div style="position:relative; background-color:red;">
<div class="progressPercent" style="display:inline-block;""width:33%">33
</div>
<div class="progressPercent" style="display:inline-block;" "width:33%">33%
</div>
<div class="progressPercent" style="display:inline-block;" "width:33%">33%
</div>
</div>
All the child divs are dynamically created and I am trying to is create a completion progress percentage bar.
As in fiddle explained I want to fill the GREEN divs completely to cover the RED parent div.