Bootstrap Listgroup With Badges

 

.list-group class is used to make a group of listing and badges are also inserted into listitems.

 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Bootstrap Listgroups Example</title> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>List Group With Badges</h2> <ul class="list-group"> <li class="list-group-item active"><span class="badge">12</span>listing 1</li> <li class="list-group-item"><span class="badge">5</span>listing 2</li> <li class="list-group-item disabled"><span class="badge">3</span>listing 3</li> </ul> </div> </body> </html>
Output