Created
September 18, 2013 02:26
-
-
Save cgkio/6603671 to your computer and use it in GitHub Desktop.
Set div height to full screen
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
$(function() { | |
var window_height = $(window).height(), | |
content_height = window_height - 200; | |
$('#div').height(content_height); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment