Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap 3 buttons - change border radius

I've searched around but whatever I try, I can't make my buttons have a border radius of zero globally. This doesn't work, can anyone help? thanks!

.btn btn-default{
    border-radius: 0px!important;
    -webkit-border-radius: 0px!important;
    -moz-border-radius: 0px!important;
}
like image 843
user6467208 Avatar asked Oct 27 '25 20:10

user6467208


2 Answers

 border-radius: 24px!important;
like image 74
Internial Avatar answered Oct 29 '25 10:10

Internial


I found that for me, I simply had to remove type=button as I had originally copy/pasted the bootstrap button from Bootstrap tutorials

I.E.

<a type="button" class="custom-css btn btn-primary btn-lg">foobar</a>

becomes

<a class="custom-css btn btn-primary btn-lg">foobar</a>
like image 31
Cameron Avatar answered Oct 29 '25 09:10

Cameron