title: How to position a dialog box?
body: <p>I have a problem with the positioning of my dialog box it apperas always in the upper left corner it should be centered in the middle but how to do that?</p>
  
  <p>Here is my script code:</p>
  
  <pre><code>$(function() {
      $("#confirmdelete").on("click", function(e) {
          var link = this;
  
          e.preventDefault();
  
          $("&lt;div&gt;Soll das Kundenkonto gelöscht werden?&lt;/div&gt;").dialog({
              buttons: {
                  "Ja, bitte löschen": function() {
                      window.location = link.href;
                  },
                  "Nein": function() {
                      $(this).dialog("close");
                  }
              }
          });
      });
  });
  </code></pre>