"Collepse in Material Design With Bootstrap"
Bootstrap 3.3.0 Snippet by sawan1108

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Material Design Bootstrap Template</title> <!-- Material Design Icons --> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <!-- Material Design Bootstrap --> <link href="http://mdbootstrap.com/MDB/live/Half%20Carousel/css/mdb.css" rel="stylesheet"> <script type="text/javascript" src="http://gc.kis.scr.kaspersky-labs.com/1B74BD89-2A22-4B93-B451-1C9E1052A0EC/main.js" charset="UTF-8"></script> </head> <body> <!-- Page content --> <div class="container page-content"> <!-- Content Row --> <div class="row"> <div class="col-md-12" id="main"> <h3>Doesn't it look better ?</h3> <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"> <div class="panel panel-default"> <div class="panel-heading" role="tab" id="headingOne"> <h4 class="panel-title"> <a class="waves-effect" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> Why is it better </a> </h4> </div> <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne"> <div class="panel-body"> <ul> <li>The titles are block, so you don't have to click the text part to activate it</li> <li>Indicators for expand / collapsing items</li> <li>Removed title links' obnoxious :hover underlinings, and outlines.</li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" role="tab" id="headingTwo"> <h4 class="panel-title"> <a class="collapsed waves-effect" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo"> Collapsible Group Item #2 </a> </h4> </div> <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo"> <div class="panel-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" role="tab" id="headingThree"> <h4 class="panel-title"> <a class="collapsed waves-effect" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree"> Collapsible Group Item #3 </a> </h4> </div> <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree"> <div class="panel-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. </div> </div> </div> </div> </div> </div> <!-- /.col-md-4 --> </div> <!-- /.row --> </div> <!-- /.container --> </div> <!--/. Page content --> <!-- SCRIPTS --> <!-- JQuery --> <script type="text/javascript" src="http://mdbootstrap.com/MDB/live/Half%20Carousel/js/jquery.min.js"></script> <!-- Bootstrap core JavaScript <script type="text/javascript" src="http://mdbootstrap.com/MDB/live/Half%20Carousel/js/bootstrap.min.js"></script> --> <!-- Material Design Bootstrap --> <script type="text/javascript" src="http://mdbootstrap.com/MDB/live/Half%20Carousel/js/mdb.js"></script> </body> </html>
/*********** Accordion css ***************/ #accordion .panel-heading { padding: 0; } #accordion .panel-title > a { display: block; padding: 0.4em 0.6em; outline: none; font-weight: bold; text-decoration: none; } #accordion .panel-title > a.collapsed { background: #c5cae9; color:#000; } #accordion .panel-title > a { background: #ff4444; color:#fff; } #accordion .panel-title > a.accordion-toggle::before, #accordion a[data-toggle="collapse"]::before { content: "\e113"; float: left; font-family: 'Glyphicons Halflings'; margin-right: 1em; } #accordion .panel-title > a.accordion-toggle.collapsed::before, #accordion a.collapsed[data-toggle="collapse"]::before { content: "\e114"; }

Related: See More


Questions / Comments: