Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Bootstrap 4 Button .btn-outline-light class
Use the btn-outline-light class in Bootsrap 4 to set light grey outlined button.
To include it on the web page, set it as a class in the <button> element as shown in the following code snippet −
<button type="button" class="btn btn-outline-light">
Let us see an example to implement the btn-outline-light class −
Example
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script> </head> <body> <h2>Demo Button</h2> <p>Below is a light grayed outline button:</p> <button type="button" class="btn btn-outline-light"> Sample </button> </body> </html>
Advertisements
