Created
July 19, 2016 23:27
-
-
Save Sysetup/ef0cb2b8d76959c9ba76156d93170859 to your computer and use it in GitHub Desktop.
Vertical <div> center
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() { | |
App.init(); | |
PageComingSoon.initPageComingSoon(); | |
$('body').css('margin-top', Number($(document).height() - $('.coming-soon-v3').height())/2); | |
$(window).resize(function() { | |
$('body').css('margin-top', Number($(document).height() - $('.coming-soon-v3').height())/2); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment