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
Shamelessly adopted from Quickredfox.
jQuersy.fn.cssNum = function(){ return parseInt(jQuery.fn.css.apply(this, arguments), 10); };
update
Changed to parseInt(val, 10) since it is faster than parseFloat.
parseInt(val, 10)
parseFloat
http://jsperf.com/number-vs-plus-vs-toint-vs-tofloat/20