Last Updated: February 25, 2016
·
1.609K
· carlosagile

Center modal in Screen with Jquery

  • Easy way to center your future modals in Screen with this simple code *

$(this).css({'margin-top': -($(this).height()/2)});
$(this).css({'top': '50%'});
$(this).css({'margin-left': -($(this).width()/2)})