Bootstrap snippet and html example. Acordion horizontal with arrows

Bootstrap 3.3.6 snippet "Acordion horizontal with arrows" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.

HTML code

Clean, semantic HTML that powers this Bootstrap 3.3.6 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.



<!-- Font awesome -->
<script src="https://use.fontawesome.com/cb2d0db4c2.js"></script>
<div>
    <div class="container">
        <div class="row">
            <br>
                <br>
                    <br>
                        <div class="col-md-4 col-md-offset-3">
                            <div aria-multiselectable="true" class="panel-group" id="accordion" role="tablist">
                                <div class="panel panel-default">
                                    <div class="panel-heading" id="headingOne" role="tab">
                                        <h4 class="panel-title">
                                            <a aria-controls="collapseOne" aria-expanded="true" data-parent="#accordion" data-toggle="collapse" href="#collapseOne" role="button">
                                                <i class="fa fa-angle-down">
                                                </i>
                                                Collapse 1
                                            </a>
                                        </h4>
                                    </div>
                                    <div aria-labelledby="headingOne" class="panel-collapse collapse in" id="collapseOne" role="tabpanel">
                                        <div class="panel-body">
                                            <div class="row">
                                                <div class="col-sm-6 col-md-12">
                                                    <div class="thumbnail">
                                                        <img alt="..." src="http://www.fargom.com.mx/img/taza-cafe.jpg">
                                                            <div class="caption">
                                                                <h3 class="text-center">
                                                                    Title
                                                                </h3>
                                                                <p>
                                                                    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.
                                                                </p>
                                                                <p class="text-center">
                                                                    <a class="btn btn-default btn-circle thumbnail-facebook-btn" href="#">
                                                                        <i class="fa fa-facebook ">
                                                                        </i>
                                                                    </a>
                                                                    <a class="btn btn-default btn-circle thumbnail-twitter-btn" href="#">
                                                                        <i class="fa fa-twitter ">
                                                                        </i>
                                                                    </a>
                                                                    <a class="btn btn-default btn-circle thumbnail-linkedin-btn" href="#">
                                                                        <i class="fa fa-linkedin ">
                                                                        </i>
                                                                    </a>
                                                                </p>
                                                            </div>
                                                        </img>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="panel panel-default">
                                    <div class="panel-heading" id="headingTwo" role="tab">
                                        <h4 class="panel-title">
                                            <a aria-controls="collapseTwo" aria-expanded="false" class="collapsed" data-parent="#accordion" data-toggle="collapse" href="#collapseTwo" role="button">
                                                <i class="fa fa-angle-down">
                                                </i>
                                                Collapse 2
                                            </a>
                                        </h4>
                                    </div>
                                    <div aria-labelledby="headingTwo" class="panel-collapse collapse" id="collapseTwo" role="tabpanel">
                                        <div class="panel-body">
                                            <div class="row">
                                                <div class="col-sm-6 col-md-12">
                                                    <div class="thumbnail">
                                                        <img alt="..." src="http://www.fargom.com.mx/img/taza-cafe.jpg">
                                                            <div class="caption">
                                                                <h3 class="text-center">
                                                                    Title
                                                                </h3>
                                                                <p>
                                                                    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.
                                                                </p>
                                                                <p class="text-center">
                                                                    <a class="btn btn-default btn-circle thumbnail-facebook-btn" href="#">
                                                                        <i class="fa fa-facebook ">
                                                                        </i>
                                                                    </a>
                                                                    <a class="btn btn-default btn-circle thumbnail-twitter-btn" href="#">
                                                                        <i class="fa fa-twitter ">
                                                                        </i>
                                                                    </a>
                                                                    <a class="btn btn-default btn-circle thumbnail-linkedin-btn" href="#">
                                                                        <i class="fa fa-linkedin ">
                                                                        </i>
                                                                    </a>
                                                                </p>
                                                            </div>
                                                        </img>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="panel panel-default">
                                    <div class="panel-heading" id="headingThree" role="tab">
                                        <h4 class="panel-title">
                                            <a aria-controls="collapseThree" aria-expanded="false" class="collapsed" data-parent="#accordion" data-toggle="collapse" href="#collapseThree" role="button">
                                                <i class="fa fa-angle-down">
                                                </i>
                                                Collpase 3
                                            </a>
                                        </h4>
                                    </div>
                                    <div aria-labelledby="headingThree" class="panel-collapse collapse" id="collapseThree" role="tabpanel">
                                        <div class="panel-body">
                                            <div class="row">
                                                <div class="col-sm-6 col-md-12">
                                                    <div class="thumbnail">
                                                        <img alt="..." src="http://www.fargom.com.mx/img/taza-cafe.jpg">
                                                            <div class="caption">
                                                                <h3 class="text-center">
                                                                    Title
                                                                </h3>
                                                                <p>
                                                                    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.
                                                                </p>
                                                                <p class="text-center">
                                                                    <a class="btn btn-default btn-circle thumbnail-facebook-btn" href="#">
                                                                        <i class="fa fa-facebook ">
                                                                        </i>
                                                                    </a>
                                                                    <a class="btn btn-default btn-circle thumbnail-twitter-btn" href="#">
                                                                        <i class="fa fa-twitter ">
                                                                        </i>
                                                                    </a>
                                                                    <a class="btn btn-default btn-circle thumbnail-linkedin-btn" href="#">
                                                                        <i class="fa fa-linkedin ">
                                                                        </i>
                                                                    </a>
                                                                </p>
                                                            </div>
                                                        </img>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </br>
                </br>
            </br>
        </div>
    </div>
        </div>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 3.3.6 to keep the design, spacing, and responsiveness consistent.



.panel-default{
  border-radius: 10px;

}
.panel-default>.panel-heading{
   background-color: #0072ff;
   border-bottom: 5px solid black;
}

.panel-title a{
  text-decoration: none;
  color: white;
}
.pa1nel-title a:hover{
  color: #ffa81c !important;
  text-decoration: none;
}
.panel-body{
  background-color: gray;
}

.btn-circle {
  width: 30px;
  height: 30px;
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
  line-height: 1.42;
  border-radius: 15px;
  color: black;
}

.thumbnail-facebook-btn{
  background-color: #3B5998;
  color: white;
}

.thumbnail-twitter-btn{
  background-color: #1DA1F2;
  color:white;
}
.thumbnail-linkedin-btn{
  background-color: #2468A1;
  color:white;
}

Javascript/Jquery code

Lightweight JS to power any interactions this snippet needs. Drop it under your scripts (after Bootstrap 3.3.6) to mirror the live demo.



$(document).ready(function() {
    $('.collapse').on('show.bs.collapse', function() {
        $(this).parent().find('.fa-angle-down').removeClass('fa-angle-down').addClass('fa-angle-up');
    }).on('hidden.bs.collapse', function() {
        $(this).parent().find('.fa-angle-up').removeClass('fa-angle-up').addClass('fa-angle-down');
    });
}); 

Similar snippets

Bootstrap example and template. Particles js banner

Particles js banner

Bootstrap example and template. Recent Comments Admin Panel

Recent Comments Admin Panel

Bootstrap example and template. unify buttons

unify buttons

Bootstrap example and template. user profile with timeline photos and setting

user profile with timeline photos and setting

Bootstrap example and template. Clients

Clients

Bootstrap example and template. bs4 Footer

bs4 Footer

Bootstrap example and template. WhatsUp Messenger

WhatsUp Messenger

Bootstrap example and template. new team members

new team members

FAQ

How do I use this snippet?

Include Bootstrap 3.3.6, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.

Can I use it in commercial projects?

Yes. It’s free for personal and commercial work; check the snippets license for details.

Is it responsive?

Yes. It inherits the responsive grid and components from Bootstrap 3.3.6.

Bootstrap example and template. Acordion horizontal with arrows

About this bootstrap example/template

Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.

Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.

Already trusted in 2.6K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 3.3.6

<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'>

<script src='https://netdna.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js'></script>

This code example is based on bootstrap 3.3.6 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

Jquery plugins

Great built-in plugins with jquery framework, you can easy to change all declarations

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working