4635 Views
It explains How to create a sidebar or section that follows you as you scroll down the page. It is very useful to show special or important content to user.
3 comments
dpeterson
9/21/2011 8:51:44 AM
It's a nice solution, but what's the reason for using this over simple css (position: fixed)?
urenjoy
9/21/2011 9:04:46 AM
position:fixed with respect to browser window. suppose your sidebar has more items which can't be displayed in single window(see live demo) then position:fixed will hide bottom items. similarly position:fixed is not care of header and footer. if header/footer comes in sidebar area then it goes to backside of sidebar.
dpeterson
9/21/2011 9:24:33 AM
Ok so the header and footer are the reasons that you're not using position:fixed. It makes sense, I was just curious what problem you ran into that didn't allow you to go with the simplest solution.