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>