I've encountered a small issue that I'm struggling to resolve.
My goal is to create a button with a Bootstrap progress bar at the bottom, but I can't seem to make it work as intended.
Here's the current setup: https://jsfiddle.net/bob_mosh/7qeazm9w/3/
HTML:
<button id="sample_button" type="button" class="soundButton">
<label class="buttonTitle">Bird Song</label>
<label class="buttonDescription">A nice bird song.</label>
<div class="progress volume-slider">
<div class="progress-bar" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</button>
CSS:
.soundButton {
display: table-cell;
background-color: rgba(255, 255, 255, 0.650);
margin: 4px;
padding: 8px;
width: 250px;
height: 120px !important;
border-radius: 8px;
border: none !important;
float: left !important;
}
.soundButton label {
color: rgba(37, 38, 43, 1.00) !important;
}
body {
background-color: rgba(37, 38, 43, 1.00)
}
.buttonTitle {
font-weight: 700;
font-size: 1.5em;
display: block;
}
.volume-slider {
bottom:0;
height: 8px !important;
}
The image on the right shows the current state and my ideal layout on the left. https://i.sstatic.net/GiCci.png
I'm having trouble getting absolute positioning to work. Whenever I try to position the progress bar absolutely, it disappears completely. Can anyone assist me in solving this issue?