Reputation: 54949
I am using jQuery Sticky header in my theme. It seems to work fine in most of the pages but in two pages it is displacing the content to the right on load and on scrolling down it places it back in the right position. i am trying to debug the issue with no results.
On Page Load
On Scroll
Upvotes: 1
Views: 1062
Reputation: 6746
Used "clear:both" on .page
.page {
clear: both;
}
The problem is that the #nav is overflowing out of your header and pushes the page to the right side.
Upvotes: 1
Reputation: 2942
<div style="height: 50px;" class="sticky-wrapper" id="undefined-sticky-wrapper"></div>
<!--- PLEASE INCLUDE -->
<div style="clear:both"></div>
put style="clear:both" after header main div (#undefined-sticky-wrapper)
Upvotes: 2
Reputation: 11750
Try removing overflow: hidden
from .page
at your css
.page {
overflow: visible
}
Upvotes: 2