SiteKickr Web Development

Vertically center a div with jQuery

$('.vcenter').each(function() { $(this).css('margin-top', (parseInt($(this).parent().css('height')) - parseInt($(this).css('height'))) / 2); });