I am trying to style the sidebar in my wordpress blog to scroll until it hits the bottom of the widget area, then becomes fixed so that it will always be visible as the body content continues to scroll.
Examples: ‘Top Stories Sidebar’ https://news.google.com/ – ‘Mo Map Sidebar’ http://www.yelp.com/search?find_desc=restaurants&find_loc=San+Francisco%2C+CA&ns=1
The problem is, ‘position: sticky;’ is not supported on a few major browsers so I would like to avoid using it. Is there an alternative method of doing this using only CSS? I haven’t started learning javascript yet, but am willing to start sooner than planned if someone can point me in the direction of where to start learning it for this desired effect.
Thanks in advance!
I think that if you require jQuery you could look at this answer:
Fix object to top of browser window when scrolling
You will need to import the jquery library into the
<head></head>
of your website using:
Is a chasing sidebar acceptable? I know you don’t know much about javascript let alone jquery, so I’ll walk you through it (used to be a teacher).