Created
November 3, 2013 23:02
-
-
Save emaildano/7295869 to your computer and use it in GitHub Desktop.
JQuery 100% div window height with min-height
This file contains 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
jQuery(document).ready(function() { | |
$("#intro").height($(window).height()); | |
$(window).resize(function() { | |
$("#intro").minHeight($(window).height()); | |
$("#intro").css("min-height", "600px"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment