Get Real CSS Integer Value

function real_height($e){
return $e.height() +
getCSSValue($e.css('padding-top')) +
getCSSValue($e.css('padding-bottom')) +
getCSSValue($e.css('margin-top')) +

function getCSSValue(pro){
	var v = parseInt(pro, 10);
	return isNaN(v) ? 0 : v;


2 thoughts on “Get Real CSS Integer Value

  1. Oh my goodness! Awesome article dude! Many thanks, However
    I am having difficulties with your RSS. I don’t understand why I cannot join it. Is there anybody getting the same RSS problems? Anyone who knows the answer will you kindly respond? Thanks!!

Comments are closed.