How to create a scrolling or static sidebar menu

Kevin picture Kevin · Aug 24, 2011 · Viewed 75.3k times · Source

I am looking for programming help on how to do a sidebar menu like the one shown at this URL:

Nettuts Website Link

I would like my sidebar to function just like the sidebar on the website, with my own look and feel applied to it. I would like the sidebar to scroll with the page fixed at its own location just as it functions on Nettuts website. How would I program this?

Answer

vascowhite picture vascowhite · Aug 24, 2011

It is a div with the css statement position: fixed; in the css class declaration.

Give any div in your html this CSS styling and you should see it working.

position: fixed;
height: 132px;
left: 0;
top: 185px;
width: 24px;