Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make twitter bootstrap buttons bigger?

I am learning html, css and twitter bootstrap as I go along.

  <div id="button" style=" position:absolute;top:450px; left:350px;">
        <p>
        <a href="https://docs.google.com/forms/d/1Exo4u2iRpChj- 
           Wg9K5HxteMeoVE1uee0fQKBWiuYYiw/viewform?pli=1" class="btn btn-primary btn-  
           large">Search
        </a>
    </p>
    </div>

I want to increase the size of the font of this button and hence make it bigger. Could someone help me with this please?

Thanks!

like image 353
Has Avatar asked Jul 14 '13 10:07

Has


People also ask

How do I make my Bootstrap button bigger?

You can very easily change button size by adding btn-lg or btn-sm class to it. These classes modify the button's padding and also the font size and the CSS border radius.

How do I make Bootstrap button smaller?

Use the . btn-sm class in Bootstrap to create a small button.

Which class will you use to make a large button using Bootstrap?

To create a large button, use the . btn-lg class in Bootstrap.


2 Answers

This has changed in Bootstrap 3.

Now it is .btn-lg, .btn-sm, or .btn-xs

https://getbootstrap.com/docs/3.4/css/

like image 122
Agustin Avatar answered Oct 18 '22 03:10

Agustin


here are the sizes bootstrap offers right out of the box.

.btn-large
.btn-small
.btn-mini

read more about it here

it's under Button sizes

Edit:

or you could make your own:

.btn-xlarge {
    padding: 18px 28px;
    font-size: 22px; //change this to your desired size
    line-height: normal;
    -webkit-border-radius: 8px;
       -moz-border-radius: 8px;
            border-radius: 8px;
}

Source located here

like image 64
ZZPLKF Avatar answered Oct 18 '22 01:10

ZZPLKF