//The offsetHeight property includes the vertical padding and borders in the height calculation, therefore //the .outerHeight() method would be the jQuery equivalent to offsetheight. $('.site-header').outerHeight();