adjust button width to content boostrap code example Example: full width bootstrap button class="btn btn-primary btn-block"