title: javascript/jquery - how to get the width of an element / css class that hasn't been added to dom yet
body: <p>I'm trying to dynamically find the width of an item which will have a css class with a specific width, in order to dynamically position its background image (a sprite). However, the item has not yet been added to the DOM. Is there a way to read a class's width property before it's added to the DOM?</p>