html - Is it possible for the container to occupy 100% screen height for any desktop screen size? -


i trying make container occupy complete height of desktop screen.

i can set height of divs pixels , occupy reasonable height.

but if viewed on large screens, bottom of container visible, empty space.

can make container occupy complete height screens?

what need sticky footer.

html {  position: relative;  min-height: 100%; } body {  margin: 0 0 100px; /* bottom = footer height */ } footer {  position: absolute;  left: 0;  bottom: 0;  height: 100px;  width: 100%; } 

read here. here's demo.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -