how to write text in center in bootstrap 4 code example Example: bootstrap text center in div <!-- recommended method --> <div class="col-xs-1 text-center">