I am using Bootstrap, and have a simple page here
If you click the green "Go" button and scroll down the page, more records are loaded. I wanted the advert in the right hand column to e.g. "stick" to 10 px from the top of the page once I have scroll down the page and reached the advert div.
As you can see, instead it remains half way down the page.
I have this as the HTML for the div:
<div class="col-md-3">
<div data-spy="affix">
<script type="text/javascript">
.. advert
<a href="#" class="back-to-top">Back to Top</a>
</div>
</div>
I wondered if there is a way to get it to do what I'm trying to do, as I'm a bit stuck?
Thanks