Answer the question
In order to leave comments, you need to log in
How to add an element to a page at a specific position?
Elements are dynamically added to the page. There can be any number of them.
<div class="main">
<div class="element"></div>
<div class="element"></div>
<div class="element"></div>
<div class="element"></div>
<div class="element"></div>
<div class="element"></div>
<div class="element"></div>
<div class="element"></div>
<div class="element"></div>
</div>
<a href="">Add divider</a>
<div class="main">
<div class="element"></div>
<div class="element"></div>
<div class="element"></div>
<div class="divider"></div> <!--This is divider-->
<div class="element"></div>
<div class="element"></div>
<div class="element"></div>
<div class="divider"></div> <!--This is divider-->
<div class="element"></div>
<div class="element"></div>
<div class="element"></div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question