columns center bootstrap 3 code example

Example 1: centralize div bootstrap

<div class="row align-items-center justify-content-center">
    <div class="col">This will be centered vertically and horizontally</div>
</div>

Example 2: bootstrap center align columns

<!-- Center columns in a Row -->
<div class="row d-flex justify-content-center text-center">
    <div class="col-4">
        // Add Content
    </div>
    <div class="col-4">
        // Add Content
    </div>
    <div class="col-4">
        // Add Content
    </div>
</div>

Example 3: columns center bootstrap 3

<div class="row">
    <div class="col-md-2 col-md-offset-5"></div>
</div>

Tags:

Misc Example