title: How to center modal to the center of screen?
body: <p>How to center modal to the center of screen?
  This is my html and js code
  It works in Chrome console, but when I refresh this page - it doesn't work</p>
  
  <pre><code>$('.modal').css('top', $(window).outerHeight() / 2 - ($(".modal-dialog").outerHeight()) / 2 + 'px');
  </code></pre>