How to: Bootstrap button center

Add class .text-center to the parent div to align any item inside to the center.

        
            
          <div class="text-center">
            <button type="button" class="btn btn-primary">Centered button</button>
          </div>