Hey, I have a ul li menu.
Link's style:
#carousel ul li {
display: inline-block;
border: solid 1px red;
margin: 50px 25px 50px 25px;
width: 350px;
height: 300px;
}
jQuery's code:
var height = $("#carousel ul li").outerHeight();
document.write(height);
And it says height of the element is 302px ! Why? It's maybe 302 with borders, but shouldn't outerHeight show 300 + 2 + 100 (both top and bottom margins are 50 px).
I'm confused.
Thanks.