Currently, my webpage features a header at the top followed by a sidebar on the left and the main content area on the right. I am looking for a solution that will allow the main content area to scroll independently from the side bar.
-----------------------------------
| Header |
|---------------------------------|
| | |
| | |
| Left | Main |
| Sidebar | Content |
| | |
| | |
-----------------------------------
I have considered styling the main content with
{ height: 500px; overflow-y: auto; }
, but this approach does not guarantee that the set height will always align perfectly with the window size.
Does anyone know of a method that would enable the main content to dynamically adjust and utilize all available window space?