I've exhausted all options in trying to center the bar in ionic, but nothing seems to be working. Can anyone provide a solution?
I want the bar to stay in the middle so that it remains centered when the application is downloaded on different devices.
.searchbar{
width: 352px;
height: 42px;
background: #C2C3C8;
box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.25);
border-radius: 90px;
//position
position:sticky;
margin-top: 10px;
}
.morepagebutton{
width: 36px;
height: 36px;
border-radius: 50%;
background: #F69E7B;
box-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.25);
//button position
position: absolute;
margin-left: 312px;
margin-top: 3px;
//vector size & position
font-size: 29px;
padding: 1px;
}
ion-toolbar {
--background: #383E56;
height: 77px;
width: 500px;
}
<ion-footer>
<ion-toolbar>
<div class="searchbar">
<button class="morepagebutton" (click)="toMorePage()">
<ion-icon name="ellipsis-horizontal"></ion-icon>
</button>
</div>
</ion-toolbar>
</ion-footer>