I want the height of a container element, including margins and paddings.
When I hover over the element in Chrome development tool, I get the value that I\'m lookin
the one that worked exactly as it should for me was a combine of both @Matt Reilly & @Lasha answers
$(window).load(function() {
setTimeout(function() {
// all the logic in here
}, 1);
});
i used to put the code in in $(document).ready(function(){...});
but it gets wanky sometimes so the above works perfectly.