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

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *