div doesn't position horizontally
<p>Im not getting my form element to position horizontaly in the center here is my code</p>

<pre><code>$('.form') 
.css('top', window.screen.availHeight / 2 - $('.form').height() / 2) 
</code></pre>
