2

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;
}
user6467208
  • 41
  • 1
  • 1
  • 2
  • Possible duplicate of [Correct way to create rounded corners in Twitter Bootstrap](http://stackoverflow.com/questions/12084121/correct-way-to-create-rounded-corners-in-twitter-bootstrap) – Jorge Campos Jun 15 '16 at 02:14
  • 3
    Your class selector is missing a `.` before `btn-default`. – solarissmoke Jun 15 '16 at 02:29

2 Answers2

3
 border-radius: 24px!important;
Internial
  • 375
  • 2
  • 5
  • 13
1

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>
Cameron
  • 2,447
  • 3
  • 27
  • 39