title: How to make a div top center?
body: <p>I'm now doing it this way,which is not centered:</p>
  
  <pre><code>$div = $('&lt;div style="background-color:yellow;position:absolute;top:0;"&gt;&lt;b&gt;Loading...&lt;/b&gt;&lt;/div&gt;').appendTo('body');
  </code></pre>