CodesJava

Easy learning with example program codes

Bootstrap 4 List Groups Active State

The .active class is used to highlight the current item in list group.

Bootstrap 4 Active Item in a List Group Example:

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap 4 Active Item in a List Group Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</head>
<body>
 
<div class="container">
  <h2>Bootstrap 4 Active Item in a List Group Example</h2>
  <div class="list-group">
    <a href="#" class="list-group-item active">First item</a>
    <a href="#" class="list-group-item">Second item</a>
    <a href="#" class="list-group-item">Third item</a>
  </div>
</div>
 
</body>
</html>

Try it:

Bootstrap 4 Active Item in a List Group Example on jsbin.com

Please follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status