SyntaxFix
Write A Post
Hire A Developer
Questions
var space = $(window).height(); var diff = space - HEIGHT; var margin = (diff > 0) ? (space - HEIGHT)/2 : 0; $('#container').css({'margin-top': margin});