daniloprado
5/20/2015 - 9:54 AM

Function to set an element height to fit the users height.

Function to set an element height to fit the users height.

function windowHeight(){
	var winHeight = $(window).height();
	$('.full-height').css('height', winHeight);
}
<div id="my-div" class="full-height"></div>