Easy learning with example program codes

Bootstrap 4 Button Outline Tutorial

Bootstrap provides the following classes to add outline or border to the buttons.

• .btn-outline-primary
• .btn-outline-secondary
• .btn-outline-success
• .btn-outline-info
• .btn-outline-warning
• .btn-outline-danger
• .btn-outline-dark
• .btn-outline-light

Bootstrap Buttons Outline Example:

<!DOCTYPE html>
<html lang="en">
  <title>Bootstrap 4 Button Outline Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="">
  <script src=""></script>
  <script src=""></script>
  <script src=""></script>
<div class="container">
  <h2>Bootstrap 4 Button Outline Example</h2>
  <button type="button" class="btn btn-outline-primary">Primary</button>
  <button type="button" class="btn btn-outline-secondary">Secondary</button>
  <button type="button" class="btn btn-outline-success">Success</button>
  <button type="button" class="btn btn-outline-info">Info</button>
  <button type="button" class="btn btn-outline-warning">Warning</button>
  <button type="button" class="btn btn-outline-danger">Danger</button>
  <button type="button" class="btn btn-outline-dark">Dark</button>
  <button type="button" class="btn btn-outline-light text-dark">Light</button>

Try it:

Bootstrap 4 Button Outline Example on

Please follow and like us:

Copyright © 2020 CodesJava Protection Status