http://104.193.173.104/modx/contact-information.html
I have the breadcrumb of the website I'm building affix under the top bar when scrolling down. For some reason, the rest of the website content jumps up when the switch happens. Any ideas why?
My breadcrumb CSS:
#breadcrumb {
padding-left: 18px;
margin-bottom: 18px;
box-shadow: 0px -5px 10px #000;
}
#breadcrumb ul {
margin-top: 0;
margin-bottom: 0px;
}
#breadcrumb.affix {
position: fixed;
top: 52px;
width: 100%;
z-index: 499;
box-shadow: 0px -8px 15px #000;
}
The "affix" script:
<script>
// BREADCRUMB AFFIX //
$(function() {
$('#breadcrumb-wrapper').height($("#breadcrumb").height());
$('#breadcrumb').affix({
offset: { top: $('#breadcrumb').offset().top - 51 }
});
});
</script>
And the breadcrumb HTML (I'm using ModX so this might not be of much help):
<div id="breadcrumb">
[[Breadcrumb? &exclude=`2,3,4,5,6,7,8,15`]]
</div>