1
How can I make sure that when my right div gets to the div of the comment area it gets fixed again? When it arrives at a number X distance from the top I apply a position Fixed to it to keep track of the content: Link of matter
<script type="text/javascript">
$(document).ready(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 630) {
$('.paginas-especiais-post').css({
position: 'fixed',
top: '60px'
});
} else {
$('.paginas-especiais-post').css({
position: 'relative',
top: '0'
});
}
});
});
</script>