jQuery has height() en width() functions that returns the height or width in pixels as integer...
How can I get a padding or margin value of an element in p
Parse int
parseInt(canvas.css("margin-left"));
returns 0 for 0px