Dave Dave - 3 months ago 8x
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/


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

<script type="text/javascript">
if($("body").height() < $(window).height()){