Add a blue background color to simulate a pressed button in Bootstrap

BootstrapWeb DevelopmentCSS Framework

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>
raja
Published on 21-Jun-2018 08:27:59
Advertisements