For example I've made my button
<div class="btn btn-default"> Active </div> and it looks like the following

However I would like to have my button like this

How can I enlarge the width of the bootstrap button regardless of text size?
Fancy larger or smaller buttons? Add .btn-lg or .btn-sm for additional sizes. Create block level buttons—those that span the full width of a parent—by adding .btn-block .
To create a large button, use the . btn-lg class in Bootstrap.
You can try to use btn-sm, btn-xs and btn-lg classes like this:
.btn-xl { padding: 10px 20px; font-size: 20px; border-radius: 10px; } JSFIDDLE DEMO
You can make use of Bootstrap .btn-group-justified css class. Or you can simply add:
.btn-xl { padding: 10px 20px; font-size: 20px; border-radius: 10px; width:50%; //Specify your width here } JSFIDDLE DEMO
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With