In my design, I have nested accordions and I am trying to create a graphical representation with vertical and horizontal lines connecting the elements.
Here is the basic structure:
<div id="accordion3" class="collapseblock">
<div class="cardsmall">
<div class="cardsmall-header">
<span class="arrowed" id="headingGeneral" data-toggle="collapse" data-target="#collapseGeneralTab" aria-expanded="false" aria-controls="collapseGeneralTab">
Test1
</span>
</div>
<div id="collapseGeneralTab" class="collapse" aria-labelledby="headingGeneral" data-parent="#accordion3">
<div class="cardsmall-content">
Example1
</div>
</div>
</div>
<div class="cardsmall">
<div class="cardsmall-header">
<span class="arrowed" id="headingCurrency" data-toggle="collapse" data-target="#collapseCurrency" aria-expanded="false" aria-controls="collapseCurrency">
Test2
</span>
</div>
<div id="collapseCurrency" class="collapse" aria-labelledby="headingCurrency" data-parent="#accordion3">
<div class="cardsmall-content">
<div id="accordion4" class="collapseblock">
<div class="cardsmall">
<div class="cardsmall-header">
<span class="arrowed" id="headingOffers" data-toggle="collapse" data-target="#collapseOffers" aria-expanded="false" aria-controls="collapseOffers">
Test2.1
</span>
</div>
<div id="collapseOffers" class="collapse" aria-labelledby="headingOffers" data-parent="#accordion4">
<div class="cardsmall-content">
Example2.1
</div>
</div>
</div>
<div class="cardsmall">
<div class="cardsmall-header">
<span class="arrowed" id="headingPricing" data-toggle="collapse" data-target="#collapsePricing" aria-expanded="false" aria-controls="collapsePricing">
Test2.2
</span>
</div>
<div id="collapsePricing" class="collapse" aria-labelledby="headingPricing" data-parent="#accordion4">
<div class="cardsmall-content">
Example2.2
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Visit this link for a visual representation on JSFiddle.
To achieve a graphical layout like in the example image below, follow the guidelines provided in the link above: