html - How can I increase the size of a bootstrap button? -


for example i've made button

<div class="btn btn-default">   active </div> 

and looks following

enter image description here

however have button this

enter image description here

how can enlarge width of bootstrap button regardless of text size?

you can try use btn-sm, btn-xs , btn-lg classes 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 can add:

.btn-xl {     padding: 10px 20px;     font-size: 20px;     border-radius: 10px;     width:50%;    //specify width here } 

jsfiddle demo


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -