I'm currently in the process of designing a new website layout using CSS, but I've encountered some challenges along the way. My main goal is to ensure that all elements stay within the boundaries of the browser window, with the scroll bar appearing only within the content area, not on the browser itself. To achieve this, I have created an outermost DIV that acts as the "wrapper" for the site. This wrapper is centered, has a set width, and takes up 100% of the height of the browser window. Inside this wrapper, I have included a header that displays correctly in various browsers.
However, when I try to add my actual content DIV inside the wrapper, I struggle to define its size properly. Adding margins or padding to account for the header causes the content to overflow, making it impossible to implement scroll functionality. On the other hand, directly setting the size of the content DIV poses a challenge as well. Any values I input end up being too large due to the additional margin and padding, causing the content to exceed the dimensions of the browser window and overflow.
Can anyone suggest CSS styles that could help me achieve the desired look for the wrapper and content DIVs? Here's a diagram illustrating the appearance I'm aiming for.