Skip to content

Instantly share code, notes, and snippets.

@emaildano
Created November 3, 2013 23:02
Show Gist options
  • Save emaildano/7295869 to your computer and use it in GitHub Desktop.
Save emaildano/7295869 to your computer and use it in GitHub Desktop.
JQuery 100% div window height with min-height
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