Created
August 30, 2013 22:31
-
-
Save jeremycaldwell/6394934 to your computer and use it in GitHub Desktop.
Set div to be full height of window and resize when browser window height changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).resize(function(){ | |
var windowHeight = jQuery(window).height(); | |
$("#header").height((windowHeight) + 'px'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment