Instead of hard coding the padding-top, I am now getting the padding-top so its completely dynamic no style related atts in the javascript.