- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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>
- Related Articles
- Set positive success action with green outlined Bootstrap 4 Button
- Set blue outlined Bootstrap 4 Button
- Set light grey outlined Bootstrap 4 Button
- Set less important stuff with grey outlined Bootstrap 4 Button
- Indicate danger with red outlined Bootstrap 4 Button
- Dark grey outlined Bootstrap 4 Button
- Bootstrap 4 Button .btn-outline-warning class
- Create a yellow button (warning) with Bootstrap
- Set warning action for a list item in a list group with Bootstrap
- Add a yellow background color to an element to set warning action with Bootstrap
- Set negative action for Bootstrap 4 cards with red background color
- Set positive action to the Bootstrap 4 card
- Set negative action to the Bootstrap 4 card
- Style Bootstrap 4 card with bg-warning class
- Bootstrap 4 .border-warning class

Advertisements