I have an element with an arbitrary height.
Element have properties box-sizing: border-box.
If using jquery appoint 100px height, the result would be the height of the element is equal to 120.
What could be wrong?
height() function only sets height of element, if you want to set total height including padding, border and margin as 100 then use
height() you are forcing jQuery to set height of element itself as 100 and thats why even if you use
box-sizing: border-box , it wont make any difference.
For further reference: http://api.jquery.com/outerheight/
I hope it helps