Currently in the process of building a website utilizing CSS and HTML, I have successfully added a navigation bar to the left side of the page using this specific CSS code. However, an issue arises when the screen is scrolled down as the navigation bar does not persist.
#navbar {
background: #a8a599;
float: left;
width: 20%;
height: 100%;
}
My goal is to adjust the height of the navigation bar to match the height of the entire document. While considering JavaScript as a potential solution, my lack of experience with the language presents a challenge in implementing this feature. Initially assuming that setting the height to 100% would suffice in occupying the entire page, it seems to only cover the visible area instead.
To view the complete webpage and explore further details, you can access it on fiddle via the following link: http://jsfiddle.net/HRpXV/3/embedded/result/