I am currently working on creating a "navbar/toolbar" with one item positioned on the left side (h3
) and three items aligned on the right side (a
, a
, and select
). However, I am facing an issue where only the first item (h3
) is vertically centered. Can someone explain why this is happening?
Below is an example of the code I am using:
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="container">
<div class="row">
<div class="col">
<div class="d-flex">
<div class="align-self-center">
<h3 class="pl-4">
Title
</h3>
</div>
<div class="ml-auto">
<a class="" href="javascript:void();">
1
</a>
<a class="" href="javascript:void();">
2
</a>
<div class="form-group" style="display: inline-block;">
<select class="form-control" >
<option>1</option>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
If anyone has suggestions on how I can align all the items vertically centered, I would greatly appreciate the assistance.