- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Jquery sticky sidebar issue
Hi there, I am trying to implement a sticky sidebar that always sits at the top of the window as the user scrolls down the page (the same way as on this site).
It sticks to the top at the correct time, but for some reason it no longer floats left… will anybody please let me know what I can do to get it to stay in the same position when sticking?
My site is here. Thanks in advance!
just add a 20px left margin
Cheers for the quick response! Below is my attempt adding it into the JQuery, but it still floats left instead of right , now with a 20px margin on the left . Should I be adding it to the CSS instead?
you can place it in the css or add it with jquery – either way will work, but I stated left margin not left
Sorry I misread that last comment. I changed it to left-margin and the error remains. Any ideas why?
Oh and heres the link edharrisondesign.com/portfolio-site2