Bootstrap includes several predefined button styles, each serving its own semantic purpose, with a few extras thrown in for more control.
In need of a button, but not the hefty background colors classes with the .btn
and plus custom class.btn-rounded
.
In need of a button, but not the hefty background colors they bring? Replace the default modifier classes with the .btn-outline-*
ones to remove all background images and colors on any button.
In need of a button, but not the hefty background colors they bring? Replace the default modifier classes with the .btn-outline-*
and plus custom class.btn-rounded
ones to remove all background images and colors on any button.
Create block level buttons—those that span the full width of a parent—by adding .btn-block
.
Any .btn
can be turned into a dropdown toggle with some markup changes. Here’s how you can put them to work with either <button>
elements:
Trigger dropdown menus above elements by adding .dropup
to the parent element.
Wrap a series of buttons with .btn
in .btn-group
. Combine sets of button groups into button toolbars for more complex components. Use utility classes as needed to space out groups, buttons, and more.
Fancy larger or smaller buttons? Add .btn-lg
or .btn-sm
for additional sizes.
Make buttons look inactive by adding the disabled
boolean attribute to any <button>
element.
Button dropdowns work with buttons of all sizes, including default and split dropdown buttons.
Similarly, create split button dropdowns with virtually the same markup as single button dropdowns, but with the addition of .dropdown-toggle-split
for proper spacing around the dropdown caret.
Bootstrap’s .button
styles can be applied to other elements, such as
Custom style buttons with icons ( Fontawesome)
Custom style buttons, name with icons ( Fontawesome)
Custom style social buttons with icons ( Fontawesome)