Possible Duplicate:
Left offset of an inline element using jQuery
I have this HTML:
<div>hello <span>world<br/>
hello world</span></div>
Obviously, the span element starts not at the beginning in the first line and thus its shape is not exactly rectangular. However, if I use jQuery to get the position
$("div").offset().left === $("span").offset().left // is true
How can I determine the actual left-corner of the span?