bootstrap 4 col examples
Example: bootstrap col-md-5 center
<div class="container">
<div class="row">
<div class="col-sm-5 mx-auto">
Centered
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-5 mx-auto">
Centered
</div>
</div>
</div>