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
Set warning action with orange outlined Bootstrap 4 Button
Set orange outline for a Bootstrap 4 button, using the btn-outline-warning class and indicate warning action.
The following includes the orange outline on a button −
<button type="button" class="btn btn-outline-warning"> Rejected </button>
The class is added just as any other class added to any element in Bootstrap. For a Bootstrap button, I used the <button> element.
You can try to run the following code to implement the btn-outline-warning 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> <h3>College Placements</h3> <ul class = "list-group"> <li class = "list-group-item">Selected Students</li> <li class = "list-group-item">Rejected Students</li> <li class = "list-group-item">Result Awaited</li> </ul> <p>List of selected and rejected students:</p> <button type="button" class="btn btn-outline-success">Selected</button> <button type="button" class="btn btn-outline-warning">Rejected</button> </body> </html>
Advertisements
