get div width, when he do not set
<p>How do I get a div element width, if it do not set?</p>

<pre><code>&lt;div class="test"&gt;Text text&lt;/div&gt; 
alert($('.test').width()); - now i get my all page width, but not div width.
</code></pre>
