Answer the question
In order to leave comments, you need to log in
Bootstrap 3 accordion + transition to anchor - how to implement?
Good day!
I'm trying to figure out the bootstrap and ran into a problem.
Wish: When expanding the accordion block - move the page to the expanded text.
Problem: I do not understand how to implement this, because in principle, block expansion is carried out by anchor, i.e. and should move towards it?
the code:
<div class="accordion" id="accordion">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle"data-toggle="collapse"data-parent="#accordion"href="#Three"><table width="100%"><tr><td width="7%"><img src="#"></td><td width="70%">Lorem ipsum dolor sit amet</td><td width="23%">Status</td></tr></table></a>
</div>
<div id="#Three" class="accordion-body collapse">
<div class="accordion-inner">
Lorem ipsum dolor sit amet
</div>
</div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Clarify please. When you open the accordion, aren't you already near the text being expanded?
upd: I can offer such a solution on my knee.
jsfiddle.net/sLfxw/5
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question