Set success action for a list item in a list group with Bootstrap

BootstrapWeb DevelopmentCSS Framework

Use the list-group-item-success class in Bootstrap to set success action for a list item in a list group.

You can try to run the following code to implement the list-group-item-success class

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">
         <h1>Java</h1>
         <ul class = "list-group">
            <li class = "list-group-item">
               <p class = "list-group-item-text">Interfaces</p>
            </li>
            <li class="list-group-item">
               <p class="list-group-item-text list-group-item-success">Multi-threading</p>
            </li>
            <li class = "list-group-item">
               <p class = "list-group-item-text">Packages</p>
            </li>
         </ul>
      </div>
   </body>
</html>
raja
Published on 20-Jun-2018 17:23:13
Advertisements