Bootstrap Dropdown Divider

 

.divider class is used to divide the dropdown items with thick horizontal border.

 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Bootstrap Dropdown 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"> <h1>Dropdown Button</h1> <div class="dropdown"> <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown"> Dropdown <span class="caret"></span> </button> <ul class="dropdown-menu"> <li><a href="#">Typescript</a></li> <li><a href="#">Angular</a></li> <li><a href="#">CSS</a></li> <li class="divider"></li> <li><a href="#">Learnkode</a></li> </ul> </div> </div> </body> </html>
Output