To make "height: 100%" work for any HTML element, its parent element must have a height value. Or the element will expand to the height of the nearest ancestor with a certain height.
If all the ancestors of the element do not have a height defined or defined as a percentage, then in order for the element to expand to the height of the page, you must give both the "body" and the "html" 100 percent height.
If you are using a boot answer using
html,body{ height:100%}
in css should solve the problem. Make sure this rule appears after enabling bootstrap-responsive.css
source share