Link Style:
#carousel ul li { display: inline-block; border: solid 1px red; margin: 50px 25px 50px 25px; width: 350px; height: 300px; }
JQuery Code:
var height = $("#carousel ul li").outerHeight(); document.write(height);
And he says the element height is 302px! What for? It can be 302 with borders, but externalHeight should not show 300 + 2 + 100 (upper and lower margins are 50 pixels).
I'm confused.
Thanks.
jquery height
fomicz
source share