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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -