My current HTML structure is as follows:
<ul class="navbar-nav flex-row ml-md-auto d-none d-md-flex">
<li *ngIf="showDeltaButton()">
<a class="col-sm-1" pTooltip="delta geometry" tooltipPosition="bottom" (click)="showDeltaGeometry()">
<i [style.color]="navBar.getIconStyle(showDelta)" class="fa fa-window-restore"></i>
<span [style.color]="navBar.getIconStyle(showDelta)">Delta</span>
</a>
</li>
<li>
<a class="col-sm-1" pTooltip="model" tooltipPosition="bottom" (click)="openCameraPanel()">
<i [style.color]="navBar.getIconStyle(showCameraPanel)" class="fa fa-camera-retro"></i>
<span [style.color]="navBar.getIconStyle(showCameraPanel)">Camera</span>
</a>
</li>
...
<li>
<a class="col-sm-1" pTooltip="close" tooltipPosition="bottom" (click)="closeDialog()">
<i class="fa fa-close"></i>
<span>Close</span>
</a>
</li>
</ul>
When styled with Bootstrap 4, it looks like this:
https://i.sstatic.net/Pk79X.png
However, I want the layout to be similar to this:
https://i.sstatic.net/SOchq.png
I am trying to achieve a design where the 'a', 'i', and 'span' elements are horizontally centered inside the 'li' element. Can anyone suggest how I can achieve this?