Easy learning with example program codes

Bootstrap 4 Button Sizes Tutorial

Bootstrap provides the following classes to define the different button sizes.

• .btn-lg
• .btn-md
• .btn-sm
• .btn-xs

Bootstrap 4 Buttons Size Example:

<!DOCTYPE html>
<html lang="en">
  <title>Bootstrap 4 Button Sizes 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 Sizes Example</h2>
  <button type="button" class="btn btn-primary btn-lg">Large</button>
  <button type="button" class="btn btn-primary btn-md">Medium</button>    
  <button type="button" class="btn btn-primary btn-sm">Small</button>
  <button type="button" class="btn btn-primary btn-xs">XSmall</button>

Try it:

Bootstrap 4 Button Sizes Example on

Please follow and like us:

Bootstrap 4 Tutorial

Copyright © 2019 CodesJava Protection Status SiteMap Reference: Java Wiki