My website features a series of vertically aligned buttons on the sidebar, styled using the following CSS:
CSS:
.sidebar {
position: fixed;
left: 20px;
top: 5%;
width: 120px;}
.sidebar .icons {
font-size: 30px;
margin: 21px;
}
HTML:
<section class="sidebar">
<div class="animation"><a href=""><img class="icons" src=""></a></div>
<div class="animation"><a href=""><img class="icons" src=""></a></div>
<div class="animation"><a href=""><img class="icons" src=""></a></div>
</section>
While the background image and center image of the website adjust responsively, these buttons remain vertical and do not scale, creating a significant blank area on mobile devices.
I am seeking solution to make these buttons align horizontally at the top of the page when viewed on mobile devices using Bootstrap. How can I achieve this?