Creating a theme for a blog, a problem arose with a small page size, the main part was compressed to a minimum and the footer pressed against it, which is not good and not beautiful. I decided to make the main part with a connection to the full height of the page. There are of course many ways to do this with or without using JavaScript, as well as with CSS. I chose pure CSS.
The advantage of this technique is pure CSS, not all JavaScript are enabled. However, it is good, then when in the concept of your design, direct borders of containers are applied. ')
Here is the CSS, “public disorder” :).
< style type ="text/css" > html,body{ height:100%; margin:0px; padding:0px }