uzay95 uzay95 - 1 year ago 62
CSS Question

How can I stretch a div to 100% page height?

.100PercentHeight{ }


<div class='100PercentHeight'>hihi</div>

How can I stretch div to 100% height of page?

Answer Source

Try (it should work in most browsers):

.100PercentHeight, html, body {
    height : auto !important; /* Ignored by Internet Explorer, applied everywhere else. */
    height : 100%;            /* Internet Explorer treats as min-height. */
    min-height : 100%;        /* Internet Explorer ignores this. */
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download