November 20th, 2012, 09:17 AM
Help with fixed left menu bar
I am fairly new to CSS and am tasked with building a fixed left menu bar with main scrolling content - not that difficult. The thing I am unsure of is this. I want the left menu to have a scroll bar appear and scroll independently IF enough items are added to cause it to need to but not be there if there are not enough items to warrant it. Is that doable? If so, what is the best approach? thanks!
November 27th, 2012, 11:11 PM
Set the height on the container element of your left menu and also set the overflow to scroll.
You need to set the height so it knows where to start the scroll for the overflow. I took the height off and the div expands and doesn't allow the content to be 'hidden'.
November 28th, 2012, 01:05 PM
Last edited by Kravvitz; November 28th, 2012 at 10:57 PM.
Reason: must we quote the whole post? :p