jQuery and the accuracy of the css function
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3029178/jquery-and-margin-0-auto">jQuery and margin: 0 auto</a>  </p>
</blockquote>



<p>I have the following HTML:</p>

<pre><code>&lt;p style="margin-left:auto; margin-right:auto; width:200px;"&gt;Hello&lt;/p&gt;
</code></pre>

<p>I then use jQuery to get <code>margin-left</code> like so:</p>

<pre><code>alert(window.jQuery(element).css('margin-left'));
</code></pre>

<p>However, it alerts <code>0px</code> rather than the expected <code>auto</code>.</p>

<p>Why is this the case and how can I get the auto?</p>
