views:

55

answers:

1

How to calculate how much px from the left is the text?

+1  A: 

You mean, how to measure the padding/margin via jQuery? It so, you can do this:

paddingleft = parseInt($('#yourElement').css("padding-left"));
marginleft  = parseInt($('#yourElement').css("margin-left"));
schneck
Combine answer of you two,it works!
Misier