Within the header of my website, I have structured 3 separate divs - one for a logo, one for a search input, and one for a cart link. My goal is to align these 3 .col-md-4 divs in a vertically centered position.
While these divs currently have an align-items-center class, it seems that they are not being vertically centered as I intended.
<div class="header">
<div class="container">
<div class="row">
<div class="col-md-4 d-flex justify-content-center justify-content-md-start align-items-center">
<a href="#" title="" class=""><img src="images/assets/logo.png" alt="" class="img-fluid"</a></a>
</div>
<div class="col-md-4 d-flex justify-content-center justify-content-md-center align-items-center">
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Search for products..." aria-label="Recipient's username" aria-describedby="basic-addon2">
<div class="input-group-append">
<button class="btn btn-outline-secondary" type="button">Search</button>
</div>
</div>
</div>
<div class="col-md-4 d-flex justify-content-center justify-content-md-end align-items-center">
<a href="#" title="" class=""><b>Cart</b></a>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
I've attached a snapshot showcasing how the current header appears. You can view it with the grey border at the bottom https://i.sstatic.net/nRW3F.png.