$("ggg div").each(function () { this.style.top = (parseFloat(this.style.top.replace("px", "")) - 165) + "px"; });