Dynamically calculate padding-left
<p>Here's a sample division:</p>

<pre><code>&lt;div style="padding:0 0 0 30px; background:url(http://www.google.com/help/hc/images/sidewiki_157505_comment_bubble.gif) left center no-repeat;"&gt;some text&lt;/div&gt;
</code></pre>

<p>I wonder how I can calculate the padding-left:30px dynamically so that any icon I choose the padding-left value changes according to the image width.</p>

<p>Any help is appreciated!</p>
