Looking for ideas on how to adjust the display width of a progress bar without affecting the elements inside it.
Here's what I'm aiming for:
https://i.sstatic.net/1clkF.png
Currently, the code for a player entry is as follows:
<div class="row playerInfo">
<div class="row healthProgress progress-bar" role="progressbar" aria-valuenow="100" aria-valuemin="0" style="width: 100%; height: 25px;">
<img id="primaryWeapon" class="col-4 pull-left no-padding img-responsive" src="/images/weapons/weapon_ak47.png" height="25px" />
<p class="playerName col-6 text-right no-padding">Matias49</p>
<p class="playerHealth col-1>100</p>
</div>
</div>
I think rather than using the bootstrap progress-bar
class, I should utilize an empty div
and manipulate the width
and background-color
underneath the player details. However, I'm unsure how to implement this in CSS. Alternatively, is there a way to achieve this with the bootstrap progress-bar
class?
Note: I realize I probably should have enclosed the progress-bar
div within a progress
container.