Example: <span style="padding-right:10px;">left text</span><span>right</span>
In the above the distance between "left text" and "right" would be 10px after they have been rendered by a browser.
So my application, would take in an html file and 2 variables(strings that exist in the html file) and then find the horizontal distance(in pixels?) between the 2 strings.
Possible at all? I am guessing I will have to modify an open source engine like webkit to achieve this. right? Or is there a simpler way? Parse page for CSS rules...would that work?
If its webkit, then how hard would it be ? which languages would I need to master ? I only know php (bit of C , C# , java)
Thanks