Bootstrap 4 Center Div Horizontally

May 31, 2019
<div class="mx-auto" style="width: 200px;">
    Hello
</div>

or

<div class="text-center" style="width: 200px;">
    Hello
</div>

NOTE: Refer to CSS Center Div Horizontally.

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.