ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 4 Button Size
Source Code
<!DOCTYPE html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <meta name="description" content=""> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" /> <title>Bootstrap 4 Button Size</title> </head> <body> <div class="container mt-4"> <h1>Bootstrap 4 Button Size</h1> <p>Large and smaller button can be created by assigning <code>.btn-lg</code> and <code>.btn-sm</code> respectively. </p> <button type="button" class="btn btn-primary btn-lg">Large Primary button</button> <button type="button" class="btn btn-secondary btn-lg">Large Secondary button</button> <h2>Smaller Button</h2> <br /> <button type="button" class="btn btn-primary btn-sm">Small Primary button</button> <button type="button" class="btn btn-secondary btn-sm">Small Secondary button</button> </div> <!--/container--> <!-- Optional JavaScript --> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> </body> </html>
Output :
Running