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

Live Demo

<!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>
Updated on: 2020-06-12T20:01:42+05:30

199 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements