H
H
hollow2014-04-09 10:59:44
Bootstrap
hollow, 2014-04-09 10:59:44

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

1 answer(s)
Y
Yuri Lobanov, 2014-04-09
@hollow

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 question

Ask a Question

731 491 924 answers to any question