Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"nested accordian"
Bootstrap 4.1.1 Snippet by
ronnydodd
4.1.1
Preview
HTML
CSS
View Full Screen
Forked from
Fork
Fork this
Parent
179
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="panel-group" id="accordion"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title "> <a href="index.php"> Home </a> </h4> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title "> <a href="aboutus.php"> About Us </a> </h4> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title title"> <a class=" collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false"> Products </a> </h4> </div> <!--/.panel-heading --> <div id="collapseTwo" class="panel-collapse collapse" aria-expanded="true" style=""> <div class="panel-body"> <!-- nested --> <div class="panel-group" id="nested"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title title"> <a class="collapsed" data-toggle="collapse" data-parent="#nested" href="#nested-collapseOne"> Mars </a> </h4> </div> <!--/.panel-heading --> <div id="nested-collapseOne" class="panel-collapse collapse"> <div class="panel-body nested-menu"> <li><a href="mars-toilet.php">Mars Toilet</a></li> <li><a href="mars-urinal.php">Mars Urinal</a></li> <li><a href="mars-shower.php">Mars Shower</a></li> </div> <!--/.panel-body --> </div> <!--/.panel-collapse --> </div> <!-- /.panel --> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title title"> <a class="collapsed" data-toggle="collapse" data-parent="#nested" href="#nested-collapseTwo"> Naptune </a> </h4> </div> <!--/.panel-heading --> <div id="nested-collapseTwo" class="panel-collapse collapse"> <div class="panel-body nested-menu"> <li><a href="neptune-toilet.php">Naptune Toilet</a></li> <li><a href="neptune-urinal.php">Naptune Urinal</a></li> <li><a href="neptune-shower.php">Naptune Shower</a></li> </div> <!--/.panel-body --> </div> <!--/.panel-collapse --> </div> <!-- /.panel --> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title title"> <a class="collapsed" data-toggle="collapse" data-parent="#nested" href="#nested-collapseThree"> Saturn </a> </h4> </div> <!--/.panel-heading --> <div id="nested-collapseThree" class="panel-collapse collapse"> <div class="panel-body nested-menu"> <li><a href="saturn-toilet.php">Saturn Toilet</a></li> <li><a href="saturn-urinal.php">Saturn Urinal</a></li> <li><a href="saturn-shower.php">Saturn Shower</a></li> </div> <!--/.panel-body --> </div> <!--/.panel-collapse --> </div> <!-- /.panel --> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title title"> <a class="collapsed" data-toggle="collapse" data-parent="#nested" href="#nested-collapseFour"> Jupiter </a> </h4> </div> <!--/.panel-heading --> <div id="nested-collapseFour" class="panel-collapse collapse"> <div class="panel-body nested-menu"> <li><a href="jupiter-toilet.php">Jupiter Toilet</a></li> <li><a href="jupiter-urinal.php">Jupiter Urinal</a></li> <li><a href="jupiter-shower.php">Jupiter Shower</a></li> </div> <!--/.panel-body --> </div> <!--/.panel-collapse --> </div> <!-- /.panel --> </div> <!-- /.panel-group --> <!-- nested --> </div> <!--/.panel-body --> </div> <!--/.panel-collapse --> </div> <!-- /.panel --> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title title"> <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#nonveg" aria-expanded="false"> Services </a> </h4> </div> <!--/.panel-heading --> <div id="nonveg" class="panel-collapse collapse" aria-expanded="false"> <div class="panel-body nested-menu"> <!-- nested --> <li><a href="cleaning-services.php">Cleaning Services</a></li> <li><a href="hand-wash-system.php">Hand Wash System</a></li> <!-- /.panel-group --> <!-- nested --> </div> <!--/.panel-body --> </div> <!--/.panel-collapse --> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title "> <a href="contactus.php"> Contact Us </a> </h4> </div> </div> </div> </div> </div>
#accordion .panel{ border: none; border-radius: 0; box-shadow: none; margin-bottom: -5px; } #accordion .panel-heading{ padding: 0; border: none; border-radius: 0; } #accordion .panel-title a{ display: block; padding: 15px 70px 15px 5px; background: #fff; /* font-size: 18px; font-weight: 700;*/ letter-spacing: 1px; color: #d21d54; border-bottom: 1px solid #d1d1d1; position: relative; font-size: 14px; font-weight: 500; } #accordion .title a.collapsed{ color: #1d2e3b; } #accordion .title a.collapsed:hover{ color: #d21d54; } #accordion .title a:before, #accordion .title a:after{ content: ""; width: 3px; height: 10px; background: #d21d54; font-size: 15px; position: absolute; top: 20px; right: 35px; transform: rotate(-45deg); transition: all 0.3s ease-in-out 0s; } #accordion .title a:after{ right: 29px; transform: rotate(45deg); } #accordion .title a.collapsed:before{ transform: rotate(45deg); background: #1d2e3b; } #accordion .title a.collapsed:after{ transform: rotate(-45deg); background: #1d2e3b; } #accordion .title a.collapsed:hover:before, #accordion .title a.collapsed:hover:after{ background: #d21d54; } #accordion .panel-body{ padding: 10px 10px; background: #fff; border-top: none; font-size: 15px; color: #000; line-height: 25px; }
Related:
See More
Template
Material Dashboard Pro
196.3K
128
Accordian Menu
97.6K
95
Collapsible nested comments
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76