Bootstrap 3 collapse (FAQ) demo.

Bootstrap 3 collapse (FAQ) demo.

This article we are creating Bootstrap 3 collapse (FAQ) demo. First of all we can use bootstrap 3 collapse question & answers section. We have been using HTML, CSS & JAVASCRIPT. How we have inserted HTML, CSS, JAVASCRIPT into our file. This is a very useful module for all web player. Just copy and paste this simple code & your FAQ section is ready.

This module you can also change according your design, because this is a custom bootstrap 3 code. we can also add even more content & also change the up & down arrow.

By using this plugin the design will look like this.

First of all you put Html in your file.

<section class="wrp-faq"> <h2> Bootstrap 3 Faq demo</h2> <div class="container"> <div class="panel-group" id="accordion"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapse1"> Lorem ipsum dolor sit amet, consectetur. <i class="fa fa-angle-up"></i></a> </h4> </div> <div id="collapse1" class="panel-collapse collapse in"> <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapse2"> Incididunt ut labore et dolore magna aliqua. <i class="fa fa-angle-down"></i></a> </h4> </div> <div id="collapse2" class="panel-collapse collapse"> <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapse3"> Ut enim ad minim veniam, quis <i class="fa fa-angle-down"></i></a> </h4> </div> <div id="collapse3" class="panel-collapse collapse"> <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div> </div> </div> </div> </div> </section>

Then put Css in your file.

  


And css link in your Html head section

https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css

https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css

And Some css put in your css file.

*{
  margin: 0px;
  padding: 0px;
  outline: none;
  text-decoration:none;
}
#accordion .panel-title a {
    outline: none;
    text-align: left;
    font-weight: 600;
    font-size: 21px;
    position: relative;
    padding: 17px 20px 15px 20px;
    display: inline-block;
    width: 100%;
}
#accordion .panel-title, .panel-heading{
  padding: 0;
}
#accordion .panel-title a:hover, #accordion .panel-title a:focus {
    text-decoration: none;
}
#accordion .panel-title i.fa {
    float: right;
    transition: all 0.5s;
    position: absolute;
    right: 20px;
    font-size: 32px;
}
.wrp-faq h2 {
  text-align: center;
  font-size: 50px;
  padding: 48px 10px;
}

Then put Js in your file.

  


And Some js link in your page.

https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js

https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js

And Some js put in your page.

$(document).ready(function(){
    $('.panel-title > a').click(function() {
    $(this).find('i').toggleClass('fa-angle-up fa-angle-down')
     .closest('panel').siblings('panel')
     .find('i')
     .removeClass('fa-angle-down').addClass('fa-angle-up');
    });
});

Finally we are completed Bootstrap 3 collapse (FAQ) demo.. First of all I want to tell you this, If you want to use more than faq section plugin you can do easily. First you will have to change the ID of the div in HTML. Likewise you can use more than more Bootstrap (FAQ) demo. in your beautiful page.

We have given the best suitable and easiest way for Bootstrap 3 collapse (FAQ) demo.

Thanks for reading this article. We have Html & Html5, jquery, js, css question & answer & Angular6 also. For more designs solutions like this, you simply visit our site’s post and pages. Collection of amazing designing, development tricks and tips. Hope you like Bootstrap 3 collapse (FAQ) demo for any query & suggestion please comment.

#bootstrap4 #bootstrap4collapse #FAQ

2 thoughts on “Bootstrap 3 collapse (FAQ) demo.

    1. papawebdesigner says:

      When do you use col-md-4, you should put 3 column in a row after that you should take row. After that you put again 3 column

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *