i have an html element and it has some css which are applied on it on the fly
i want to know the exact height and width it takes after a new css class is applied. I tried offsetWidth and offsetHeight but they didnt included padding and margin properties of the element.
How to get the exact value without actually calculating it? can it be done with a css property directly?
jQuery makes it easy for you: http://api.jquery.com/outerWidth/