CSS Min Height Hack

I came across this snippet of CSS a few years ago and still use it so thought I’d share.

It’s a min-height hack that allows you to set a height then once content goes beyond that point the height increases to suit. It works well in all modern browsers too.

Credit to Dustin Diaz which is where I originally got this hack, trust me it works ūüôā

selector
{
    min-height: 500px;
    height: auto !important;
    height: 500px;
}

Share this


 Back to Latest News

Donations

All these templates are created as donationware, if you are going to use them in a commercial project or would like to contribute, please donate:

£ GBP



Looking for information about link removal? - Click Here


Recommended Hosting

Number of Templates
26

Total Downloads
60807

Daily Downloads (Avg)
40

Download Website Templates © 2018 - HTML Sitemap - Privacy Policy

Website Design by Derby Web Design