Buttons
Use Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
Base class
Variants
Outline
Sizing
You can even roll your own custom sizing with CSS variables:
Sizing
Block button
Here we create a responsive variation, starting with vertically stacked buttons until the md breakpoint, where .d-md-block replaces the .d-grid class, thus nullifying the gap-2 utility. Resize your browser to see them change.
Block button
You can adjust the width of your block buttons with grid column width classes. For example, for a half-width “block button”, use . .col-6 Center it horizontally with .mx-auto ,too.
Block button
You can adjust the width of your block buttons with grid column width classes. For example, for a half-width “block button”, use . .col-6 Center it horizontally with .mx-auto ,too.