Alrighty
I will try to explain what is going on with me. Let me know if you need more information.
Basically, I have a div container, and I will style it in height:100%;It will do 100%, but it will only be 100% for the current browser / window size.
For example: if I maximize the browser, the container will do 100%, but if I scroll down, the height of this container will be equal only to the height of the browser.
Another example: if I minimize the browser to a certain size and refresh the page, the container will go back to 100% only to the size of the window. Therefore, if I maximize the browser, the height container will still have the same height if the browser is minimized.
So, if I have a long page, the container does not reach the page, the container only reaches the window height when loading the page.
I am trying to bring the container to 100% to the bottom of the page, even if I have a footer or header, the container should be 100% between them.
So, I will try to publish the most relevant code:
body,html
{
display:block;
position:relative;
}
#container_100percent
{
overflow-x:hidden;
position:relative;
overflow-y:auto;
width:20%;
min-height:100%;
height:100%;
float:right;
}
<div>
<div id="container_100percent">
</div>
</div>
source
share