I think this might have been the default in a previous version of jquery, but when I call .css("height")
and .height()
, it returns the computed height, which isn't what I want- I only want a height value if it is specifically declared in a CSS file for that element.
Like if it isn't declared anywhere, perhaps it could return 'auto'
like it does for top and left sometimes...
For example, my CSS looks like this:
.element{
margin-left:5px;
color:red;
}
.css("margin-left")
returns "5px"
, while .css("height")
returns 20
even though it isn't specifically set...
Thanks