"Bootstrap Accordion Group that collapse with chevrons - Moodle 3.3.3"
Bootstrap 2.3.2 Snippet by dgcruzing

<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/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="editor-indent" style="margin-left: 20px; padding: 0 0 0 40px; margin-right: 50px"> <div class="container-fluid"> <div class="row-fluid"> <h3>Bootstrap Accordion Group that collapses when clicking whole div and has chevrons</h3> </div> </div> <div class="panel-group" id="accordion"> <div class="panel panel-info"> <div class="panel-heading" data-toggle="collapse" data-parent="#accordion" data-target="#collapseOne"> <h4 class="panel-title accordion-toggle"> Collapsible Group Item #1 </h4> </div> <div id="collapseOne" class="panel-collapse collapse"> <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-info"> <div class="panel-heading" data-toggle="collapse" data-parent="#accordion" data-target="#collapseTwo"> <h4 class="panel-title accordion-toggle"> Collapsible Group Item #2 </h4> </div> <div id="collapseTwo" class="panel-collapse collapse"> <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-info"> <div class="panel-heading" data-toggle="collapse" data-parent="#accordion" data-target="#collapseThree"> <h4 class="panel-title accordion-toggle"> Collapsible Group Item #3 </h4> </div> <div id="collapseThree" class="panel-collapse collapse"> <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>
@import url('//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css'); @import url('//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css'); .panel-heading { cursor: pointer; } /* CSS Method for adding Font Awesome Chevron Icons */ .accordion-toggle:after { /* symbol for "opening" panels */ font-family:'FontAwesome'; content:"\f077"; float: right; color: inherit; } .panel-heading.collapsed .accordion-toggle:after { /* symbol for "collapsed" panels */ content:"\f078"; }

Related: See More


Questions / Comments: