I am trying to center my Container in the middle of the page using Bootstrap 4.
<section id="film">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="card-body">
<img src="images\laravel.jpg" class="img-fluid">
</div>
</div>
<div class="col-md-6">
<div class="card-body">
<div class="d-flex align-items-center">
<img src="images\logo.png" class="img-fluid">
</div>
</div>
</div>
</div>
</div>
</section>
The justify-content-center
aligns the form horizontally, but I can't figure out how to align it vertically. I have tried to use align-items-center
and align-self-center
, but it doesn't work.
What am I missing?