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)})
Written by Carlos Escobedo
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#