jQuery liScroll text width problem
<p>I'm using this jQuery script to animate a scrolling bar of twitter updates
<a href="http://the-taylors.org/blog/2010/03/15/liscroll-jquery-news-ticker-customisation-with-next-previous-play/" rel="nofollow">http://the-taylors.org/blog/2010/03/15/liscroll-jquery-news-ticker-customisation-with-next-previous-play/</a></p>

<p>Its all working fine except the width of the Div (class=liScroll-ticker) that holds the UL is incorrectly calculated - its too small and the list elements are not remaining on the same line as a result.</p>

<p>I think I've narrowed it down to this line in the script:  </p>

<pre><code>$stripItems.each(function(i) {  
    stripWidth += jQuery(this, i).width();  
});  
$strip.width(stripWidth);
</code></pre>

<p>I read in another thread on here that injecting a [span] element might allow me to measure the width of that rather than the text. Does anyone have any idea how to insert that into the script above, or if that is even the correct approach?</p>

<p>Thanks for any help!</p>

<p><em>UPDATE</em></p>

<p>It seems that the way I am styling the text is increasing the width and the script does not add on the extra pixels. </p>

<p>I tried using the <code>outerWidth()</code> method on both <code>stripWidth</code> and <code>accumulatedWidth</code> with no success.</p>

<p>I also tried wrapping the contents of each <code>&lt;li&gt;</code> in a <code>&lt;span&gt;</code> and measuring that instead, and while it did return a different value it was still incorrect. Likewise with a <code>&lt;div&gt;</code>.</p>

<p>I'm fairly confused!! Am I even correct in thinking that the margins, padding, font-size and font-weight attributes are causing the problem? Or is it that I have <code>&lt;span&gt;</code> elements inside the <code>&lt;li&gt;</code>'s that aren't being measured?</p>

<p>Here is a demonstration of the problem:
<strong>http://jsfiddle.net/martynr/ExcBr/9/</strong></p>
