I have an element that, when clicked, should display additional content. However, when the headline contains a lot of text, the element does not expand vertically as it should.
Thank you for your help!
Check out how it looks currently
This is my HTML code:
<div class="faq-default-content faq-content">
<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="#collapse13" class="collapsed">This is a test test test... </a>
</h4>
</div>
<div id="collapse13" class="panel-collapse collapse" role="tabpanel">
<div class="panel-body">
<div class="panel_body_up">
<p>Additional text and content</p><a href="#" target="_blank"><button style="margin-right:15px;" type="submit" class="btn theme-btn" data-loading-text="Please wait...">Take a look</button></a>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse13" class="collapsed">This is another test ... </a>
</h4>
</div>
<div id="collapse13" class="panel-collapse collapse" role="tabpanel">
<div class="panel-body">
<div class="panel_body_up">
<p>More additional text and content</p><a href="#" target="_blank"><button style="margin-right:15px;" type="submit" class="btn theme-btn" data-loading-text="Please wait...">Take a look</button></a>
</div>
</div>
</div>
</div>
</div>
</div>
This is my CSS:
.faq-default-content.faq-content {
margin-top: -10px;
}
.faq-content .panel-group .panel {
border-radius: 0;
margin-top: 10px;
}
.faq-content .panel-group .panel {
background: #fff none repeat scroll 0 0;
border-radius: 0;
box-shadow: none;
margin-top: 10px;
}
- Rest of original CSS -