Created
January 17, 2013 09:39
-
-
Save Chrisedmo/4554853 to your computer and use it in GitHub Desktop.
Cool vh fallback - update an elements size based on window height + width.
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
$(document).ready( | |
function(){ | |
//resizes div box to perfect window w/h | |
function sizeMe() { | |
$('#mySlider').css({height:($(window).height()-150),width:$(window).width()}); | |
}; | |
sizeMe(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment