Fixing a menu in one direction in jquery
I have a "fixed" menu bar on the left side of a website that I want to follow the scrollbar down the page when the user scrolls. I've tried two approaches so far, one css, and one jquery: 1) My first attempt was to use css style fixing: #leftframe { position:fixed; width: 200; } Normally, this works great on vertical scrolling. The problem with this solution is that when the window isn't very wide, and the user tries to scroll, it goes right over the page contents. 2) After some research, I found that there's a jquery approach that allows you to fix an element in one direction, as described on