I am attempting to align 3 buttons in the center and a slider on the right side of the same line. However, I am facing an issue where when I center the buttons and float the slider to the right, the buttons lose their alignment in the middle. Here is how it currently looks:
https://i.sstatic.net/Ww0t4.png
.container {
text-align: center;
}
.music-buttons {
width: 50px;
height: 50px;
}
.volume-control {
margin-right: 10px;
float: right;
}
<div>
<input type="range" class="volume-control">
</div>
<div class="container">
<img class="music-buttons" src="https://via.placeholder.com/50">
<img class="music-buttons" src="https://via.placeholder.com/50">
<img class="music-buttons" src="https://via.placeholder.com/50">
</div>
It may look chaotic, but I am experimenting with different options.