"list-unstyled 2 levels"
Bootstrap 4.0.0 Snippet by olivierlabbe

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <ul class="list-unstyled multilevels"> <li>Category name</li> <li> <ul> <li><a href="#">Sub-cat</a></li> <li><a href="#">Sub-cat</a></li> <li><a href="#">Sub-cat</a></li> <li><a href="#">Sub-cat</a></li> <li> <ul> <li><a href="#">Sub-Sub-cat</a></li> </ul> </li> </ul> </li> <li>Category name</li> <li> <ul> <li><a href="#">Sub-cat</a></li> <li><a href="#">Sub-cat</a></li> <li><a href="#">Sub-cat</a></li> <li><a href="#">Sub-cat</a></li> </ul> </li> </ul> </div> </div>
.list-unstyled.multilevels li { font-weight:bold; } .list-unstyled.multilevels ul { padding-left:1.4rem; list-style:none; } .list-unstyled.multilevels ul li { font-weight:normal; }

Related: See More


Questions / Comments: