CSS Make Height of an Inner Div 100% of Page

Here is explain how to make 100% height inner div. We have to define the height of this inner div’s parents firstly. Because the height 100% of inner div is based on its parents height.

Here example we want div which class is col-l 100% height of page, so we need to tell all the col-l div’s parents – html, body, #wrapper, #container – to be height 100% of page. That’s it.

Leave a Reply

Your email address will not be published. Required fields are marked *