#WorldContainer { width: 1000px; margin: auto; overflow: hidden; } .ContentColumn { float: left; width: 500px; overflow: auto; } <div id="WorldContainer"> <div class="ContentColumn"> Content goes here! </div> <div class="ContentColumn"> Content goes here! </div> </div>
This will give you a page where the main div cannot scroll, but there can be two div columns. They will be side by side. You asked the question is not entirely clear, therefore, I hope this is what you were.
EDIT: in response to showing an example site.
Your problem is very simple.
All your divs have a height rule of height: 100%;
When you use the percentage height, you make it as a percentage of the container in which it is located, i.e. Its parent container. This is not the percentage height of the entire window.
Per container height is indicated in each container, so the result is equal to height 0. Give your outer div a fixed height, and the problem will be solved.
Additional editing:
If you are interested in the outer edge of the div always stretching to the bottom of the window, then this is a css solution using absolute positioning:
#OutermostDiv { position: absolute; top: 0; bottom: 0; }
Using this approach still causes the calculated height, even if the outer div does not have a hard coded height. This will allow you to use percentage heights on your inner divs and maintain an outer div that extends from the top to the bottom of the visible window.
source share