ShapeYourPath
(current)
Run Code
Live Code Editor- Creating Bootstrap 4 Outline Button
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 Outline Button</title> </head> <body> <div class="container mt-4"> <h1>Bootstrap Outline Button</h1> <p>Bootstrap outline button can be created by assign .btn and .btn-outline-* classes to the button element base class.</p> <div class="row"> <div class="col mb-4"> <button type="button" class="btn btn-outline-primary">Primary</button> </div> <div class="col mb-4"> <button type="button" class="btn btn-outline-secondary">Secondary</button> </div> <div class="col mb-4"> <button type="button" class="btn btn-outline-success">Success</button> </div> <div class="col mb-4"> <button type="button" class="btn btn-outline-danger">Danger</button> </div> <div class="col mb-4"> <button type="button" class="btn btn-outline-warning">Warning</button> </div> <div class="col mb-4"> <button type="button" class="btn btn-outline-info">Info</button> </div> <div class="col mb-4"> <button type="button" class="btn btn-outline-dark">Dark</button> </div> <div class="col mb-4"> <button type="button" class="btn btn-outline-light">Light</button> </div> </div> </div> <!--/container--> <!-- 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