When I wrap the progress bar with a div that has position: fixed the progress bar is just gone:
.volume {
position: fixed;
top: 10px;
left: 10px;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" rel="stylesheet" />
<div class="volume">
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
How can I fix that?
About positioning from the Mozilla Developer guide:
So your progress bar is there but with zero width. Give it a width and it will become visible.
.volume {
position: fixed;
top: 10px;
left: 10px;
width: calc(100% - 20px);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With