Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Jquery sticky sidebar issue

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #39349
    edharrison89
    Member

    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!

    #107790
    wolfcry911
    Participant

    just add a 20px left margin

    #107791
    edharrison89
    Member

    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?

    	
    #107804
    wolfcry911
    Participant

    you can place it in the css or add it with jquery – either way will work, but I stated left margin not left

    #107838
    edharrison89
    Member

    Sorry I misread that last comment. I changed it to left-margin and the error remains. Any ideas why?

    	
    #107839
    edharrison89
    Member

    Oh and heres the link edharrisondesign.com/portfolio-site2

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.