Bootstrap Buttons: Styling and Usage Guide
☰Fullscreen
Table of Content:
Button Styles
Bootstrap 4 provides different styles of buttons:
Only Important Code
Button Styles
Full Code For The Above Example
See Live Preview of the above codeBootstrap Button Example Button Styles
The button classes can be used on an <a>, <button>, or <input></code> element:
Only Important Code
Button Elements
Link Button
Full Code For The Above Example
See Live Preview of the above codeBootstrap Example Button Elements
Link Button
Button Outline
Bootstrap 4 provides eight outline/bordered buttons:
Only Important Code
Button Outline
Full Code For The Above Example
See Live Preview of the above codeBootstrap Button Example Button Outline
Button Sizes
Bootstrap 4 provides different button sizes:
Only Important Code
Button Sizes
Full Code For The Above Example
See Live Preview of the above codeBootstrap Button Example Button Sizes
Block Level Buttons
Add class .btn-block to create a block level button that spans the entire width of the parent element.
Only Important Code
Block Level Buttons
Large Block Level Buttons
Small Block Level Buttons
Full Code For The Above Example
See Live Preview of the above codeBootstrap Example Block Level Buttons
Large Block Level Buttons
Small Block Level Buttons
Active/Disabled Buttons
A button can be set to an active (appear pressed) or a disabled (unclickable) state:
Only Important Code
Full Code For The Above Example
See Live Preview of the above codeBootstrap Button Example