bootstrap 4 col12 center contents code example
Example 1: bootstrap col center content
<div class="row">
<div class="col-4 d-flex justify-content-center text-center">
// for image and text
</div>
</div>
Example 2: bootstrap col-md-5 center
<div class="container">
<div class="row">
<div class="col-sm-5 mx-auto">
Centered
</div>
</div>
</div>