css - Sticky Div within Container - no overlap with footer -
i using jsfiddle: jsfiddle
in site, getting following error: uncaught typeerror: cannot read property 'top' of undefined
the line breaks of jsfiddle:
var sidebartop = $sidebar.position().top;
what reason?
just give idea of trying solve. have div in top of page, , set position fixed. when user scroll bottom of page, div overlaps footer. need to stop (stick) div in place , not go more bottom once passes point
it's not breaking on either jsfiddle or on side. there might possibility write js script before html loaded. try write js/jquery code @ end after html page.
refferences javascript on bottom of page?
Comments
Post a Comment