I think it could be the default in a previous version of jquery, but when I call .css("height") and .height() , it returns the calculated height, which I don't want - I only need the height value if it is specifically declared in the CSS file for this element.
As if it had not been declared anywhere, perhaps it could return 'auto' , as it does on the top and left, sometimes ...
For example, my CSS looks like this:
.element{ margin-left:5px; color:red; }
.css("margin-left") returns "5px" , and .css("height") returns 20 , although it is not specifically set ...
thanks
source share