Dave Dave - 2 years ago 77
CSS Question

Why is min-height not working?

So here's the scoop.

I have a gradient applied to the background of the body element. Then I have a container (right after body) that has a background .png image applied to it. The gradient always expands to at least 100% window height but the container (#body2) does not.

Any suggestions to why this doesn't work? You can inspect the HTML on my web page here: http://www.savedeth.com/parlours/

Answer Source

Screw it. Who doesn't have javascript anyways? Especially for this demographic.

<script type="text/javascript">
if($("body").height() < $(window).height()){
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download