Home › Forums › JavaScript › Setting a Div height to the window viewport size › Re: Setting a Div height to the window viewport size
October 31, 2012 at 11:56 am
#113040
mmoustafa
Member
With jQuery
**$(window).resize(function() {
$(‘#my-div’).css(‘height’, window.innerHeight+’px’);
});**