"Professional accordion"
Bootstrap 3.2.0 Snippet by Sagar Joshi

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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 ----------> <div class="container"> <div class="row"> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css' /> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <div id="integration-list"> <ul> <li> <a class="expand"> <div class="right-arrow">+</div> <div> <h2>C.I.Agent Solutions</h2> <span>Meets SPCC Regulation 40CFR112, Oil spill solutions, Oil Solidifier - just pick it up and send it to a land fill, Spill kits, Sub-station containment</span> </div> </a> <div class="detail"> <div id="left" style="width:15%;float:left;height:100%;"> <div id="sup"> <img src="http://www.ciagent.com/ciagent/cialogo4.png" width="100%" /> </div> </div> <div id="right" style="width:85%;float:right;height:100%;padding-left:20px;"> <div id="sup"> <div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span> <br /> <br /><a href="#">Visit Website</a> </div> </div> </div> </div> </li> <li> <a class="expand"> <div class="right-arrow">+</div> <h2>DCD Design</h2> <span>Cable installation tools, Line swivels, Duct pullers, Cable pulling eyes, Wire mesh grips, Line blowing, Lubricants, Manhole products, Duct rodders and a new cable puller, Cable Lashers</span> </a> <div class="detail"> <div id="left" style="width:15%;float:left;height:100%;"> <div id="sup"> <img src="http://www.dcddesign.com/images/dcd-logo.jpg" width="100%" /> </div> </div> <div id="right" style="width:85%;float:right;height:100%;padding-left:20px;"> <div id="sup"> <div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span> <br /> <br /><a href="#">Visit Website</a> </div> </div> </div> </div> </li> <li> <a class="expand"> <div class="right-arrow">+</div> <h2>Huskie Tools</h2> <span>Huskie Tools battery powered compression tools and cutters, hydraulic compression and cutting tools and dies</span> </a> <div class="detail"> <div id="left" style="width:15%;float:left;height:100%;"> <div id="sup"> <img src="http://www.huskietools.info/ht_wp//wp-content/uploads/2012/06/logo.gif" width="100%" /> </div> </div> <div id="right" style="width:85%;float:right;height:100%;padding-left:20px;"> <div id="sup"> <div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span> <br /> <br /><a href="#">Visit Website</a> </div> </div> </div> </div> </li> <li> <a class="expand"> <div class="right-arrow">+</div> <h2>Line Hardware</h2> <span>Pole, cable, pipe, coil pipe, flatbed, low-boy and equipment trailers.</span> </a> <div class="detail"> <div id="left" style="width:15%;float:left;height:100%;"> <div id="sup"> <img src="http://www.linehardware.com/graphics/logo2.gif" width="100%" /> </div> </div> <div id="right" style="width:85%;float:right;height:100%;padding-left:20px;"> <div id="sup"> <div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span> <br /> <br /><a href="#">Visit Website</a> </div> </div> </div> </div> </li> <li> <a class="expand"> <div class="right-arrow">+</div> <h2>Lonestar Prestress</h2> <span>Concrete poles up to 75’, square tapered, smooth or pebble finish, easi-set transportable pre-cast concrete buildings</span> </a> <div class="detail"> <div id="left" style="width:15%;float:left;height:100%;"> <div id="sup"> <img src="http://www.lonestarprestress.com/images/main_logo.jpg" width="100%" /> </div> </div> <div id="right" style="width:85%;float:right;height:100%;padding-left:20px;"> <div id="sup"> <div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span> <br /> <br /><a href="#">Visit Website</a> </div> </div> </div> </div> </li> <li> <a class="expand"> <div class="right-arrow">+</div> <h2>Mid Central Electric</h2> <span>½ to 5 KVA transformers and capacitor isolators, low loss copper wound</span> </a> <div class="detail"> <div id="left" style="width:15%;float:left;height:100%;"> <div id="sup"> <img src="http://www.midcentralelectric.com/intro.jpg" width="100%" /> </div> </div> <div id="right" style="width:85%;float:right;height:100%;padding-left:20px;"> <div id="sup"> <div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span> <br /> <br /><a href="#">Visit Website</a> </div> </div> </div> </div> </li> <li> <a class="expand"> <div class="right-arrow">+</div> <h2>Quality FiberGlass</h2> <span>Ground sleeves, switch gear and transformer box pads, cable trays, battery racks, fuse cabinets and trench covers.</span> </a> <div class="detail"> <div id="left" style="width:15%;float:left;height:100%;"> <div id="sup"> <img src="http://www.qualityfiberglassproducts.com/uploads/3/3/9/7/3397275/1394822038.png" width="100%" /> </div> </div> <div id="right" style="width:85%;float:right;height:100%;padding-left:20px;"> <div id="sup"> <div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span> <br /> <br /><a href="#">Visit Website</a> </div> </div> </div> </div> </li> <li> <a class="expand"> <div class="right-arrow">+</div> <h2>RMC Plastics</h2> <span>Wildlife protectors, Secondary twist wire separators and Spreader tools.</span> </a> <div class="detail"> <div id="left" style="width:15%;float:left;height:100%;"> <div id="sup"> <img src="http://rmcplastics.com/wp-content/themes/rmcplastics/images/RMC-logo200.fw.png" width="100%" /> </div> </div> <div id="right" style="width:85%;float:right;height:100%;padding-left:20px;"> <div id="sup"> <div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span> <br /> <br /><a href="#">Visit Website</a> </div> </div> </div> </div> </li> <li> <a class="expand"> <div class="right-arrow">+</div> <h2>ROHN Products</h2> <span>Tapered Steel poles for power line, substations and lighting.</span> </a> <div class="detail"> <div id="left" style="width:15%;float:left;height:100%;"> <div id="sup"> <img src="http://www.twrlighting.com/images/rohn.jpg" width="100%" /> </div> </div> <div id="right" style="width:85%;float:right;height:100%;padding-left:20px;"> <div id="sup"> <div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span> <br /> <br /><a href="#">Visit Website</a> </div> </div> </div> </div> </li> <li> <a class="expand"> <div class="right-arrow">+</div> <h2>Speed Systems</h2> <span>Cable preparation tools, secondary and primary cable strippers; elbow puller: Oklahoma and North Texas</span> </a> <div class="detail"> <div id="left" style="width:15%;float:left;height:100%;"> <div id="sup"> <img src="http://www.spdsystems.com/Content/Images/SpdSysLogo.gif" width="100%" /> </div> </div> <div id="right" style="width:85%;float:right;height:100%;padding-left:20px;"> <div id="sup"> <div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span> <br /> <br /><a href="#">Visit Website</a> </div> </div> </div> </div> </li> <li> <a class="expand"> <div class="right-arrow">+</div> <h2>Tiiger</h2> <span>Pole Pulling Equipment</span> </a> <div class="detail"> <div id="left" style="width:15%;float:left;height:100%;"> <div id="sup"> <img src="http://www.tiiger.com/images/Tiiger_logo.jpg" width="100%" /> </div> </div> <div id="right" style="width:85%;float:right;height:100%;padding-left:20px;"> <div id="sup"> <div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span> <br /> <br /><a href="#">Visit Website</a> </div> </div> </div> </div> </li> <li> <a class="expand"> <div class="right-arrow">+</div> <h2>Trayer Engineering</h2> <span>Submersible and Padmount Switchgear, Auto-Transfer & SCADA</span> </a> <div class="detail"> <div id="left" style="width:15%;float:left;height:100%;"> <div id="sup"> <img src="http://trayer.com/wp-content/uploads/2013/11/trayer-logo.jpg" width="100%" /> </div> </div> <div id="right" style="width:85%;float:right;height:100%;padding-left:20px;"> <div id="sup"> <div><span>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</span> <br /> <br /><a href="#">Visit Website</a> </div> </div> </div> </div> </li> </ul> </div> </div> </div>
*, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } #integration-list { font-family: 'Open Sans', sans-serif; width: 80%; margin: 0 auto; display: table; } #integration-list ul { padding: 0; margin: 20px 0; color: #555; } #integration-list ul > li { list-style: none; border-top: 1px solid #ddd; display: block; padding: 15px; overflow: hidden; } #integration-list ul:last-child { border-bottom: 1px solid #ddd; } #integration-list ul > li:hover { background: #efefef; } .expand { display: block; text-decoration: none; color: #555; cursor: pointer; } h2 { padding: 0; margin: 0; font-size: 17px; font-weight: 400; } span { font-size: 12.5px; } #left,#right{ display: table; } #sup{ display: table-cell; vertical-align: middle; width: 80%; } .detail a { text-decoration: none; color: #C0392B; border: 1px solid #C0392B; padding: 6px 10px 5px; font-size: 14px; } .detail { margin: 10px 0 10px 0px; display: none; line-height: 22px; height: 150px; } .detail span{ margin: 0; } .right-arrow { margin-top: 12px; margin-left: 20px; width: 10px; height: 100%; float: right; font-weight: bold; font-size: 20px; } .icon { height: 75px; width: 75px; float: left; margin: 0 15px 0 0; } .london { background: url("http://placehold.it/50x50") top left no-repeat; background-size: cover; } .newyork { background: url("http://placehold.it/50x50") top left no-repeat; background-size: cover; } .paris { background: url("http://placehold.it/50x50") top left no-repeat; background-size: cover; }
$(function() { $(".expand").on( "click", function() { $(this).next().slideToggle(200); $expand = $(this).find(">:first-child"); if($expand.text() == "+") { $expand.text("-"); } else { $expand.text("+"); } }); });

Related: See More


Questions / Comments:

problem: doesn't open accordeon when I press the PLUS sign

js fails to work in my case

johnny () - 4 years ago - Reply 1


I have a problem with "Professional accordion" I built but when I click on it and goes back down immediately and does not allow me to view the contents of the "detail".
I work with Typo3 and bootstrap version 7.6.5.
Can anyone help me?
thank you in advance

Sylvie Rouche () - 5 years ago - Reply 1


Good design. but it has some problems for other ul inside detail class.. to solve change all the css to..
#integration-list ul -----------> ul.integration-list
and for HTML add the class to the UL...
<div id="integration-list"><ul> -------------> <div><ul class="integration-list">
with this only affects the li elements for the accordion, and not the content..

Henry Gabriel () - 5 years ago - Reply 0