jquery - How do I get my div to be a minium height of browser window but able to grow aswell -


im using slip of jquery detects height of browser window , sets height of div same height i'm having problem. problem div goes far height of browsers window no longer. need div minimum height of browser window able contiue longer if needs

fyi jquery noob :p

currently problem looks like: http://d.pr/i/oqyp

this code:

$(function(){     $('.projects-about') .css({'height': (($(window).height()))+'px'});     $(window).resize(function(){         $('.projects-about') .css({'height': (($(window).height()))+'px'});     }); }); 

have tried min-height?

$(function(){     $('.projects-about') .css({'min-height': (($(window).height()))+'px'});     $(window).resize(function(){         $('.projects-about') .css({'min-height': (($(window).height()))+'px'});     }); }); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -