"Note that the computed style of an element may not be the same as the value specified for that element in a style sheet."
There's probably some calculation rounding happening. Try using height()
or outerHeight()
instead.
"The difference between .css( "height" ) and .height() is that the latter returns a unit-less pixel value (for example, 400) while the former returns a value with units intact (for example, 400px). The .height() method is recommended when an element's height needs to be used in a mathematical calculation."