- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
Add a blue background color to simulate a pressed button in Bootstrap
To add a blue background color to simulate a pressed button, use the primary button in Bootstrap as in the following code −
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div class = "container"> <h2>Score</h2> <button type = "button" class = "btn btn-primary">Result (2018)</button> <button type = "button" class = "btn btn-primary disabled">Result (2017)</button> </div> </body> </html>
- Related Articles
- Add a blue background color to an element to set key stuff with Bootstrap
- Add a grey background color to the Bootstrap 4 card
- Add a light grey background color to the Bootstrap 4 card
- Add hover color to background color of the table row in Bootstrap
- Add a gray background color to the active link in a default Bootstrap navbar
- Add a background color to the active list item in a Bootstrap list group
- Add a red background color to an element to set danger action with Bootstrap
- Add a green background color to an element to set positive action with Bootstrap
- Add a yellow background color to an element to set warning action with Bootstrap
- Create a blue button (primary) with Bootstrap
- Add a pressed effect on button click with CSS
- How to change a button background color using Swift?
- Change the background color of a button with CSS
- How to reset the background color of a Python Tkinter button?
- How to make a Button Hover to change the Background Color in Tkinter?

Advertisements