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

BootstrapWeb DevelopmentCSS Framework

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

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>Demo One</h1>
         <ul class = "list-group">
            <li class = "list-group-item">
               <p class = "list-group-item-text list-group-item-danger">A</p>
            </li>
            <li class = "list-group-item">
               <p class = "list-group-item-text">B</p>
            </li>
         </ul>
      </div>
   </body>
</html>
raja
Published on 22-Jun-2018 12:02:28
Advertisements