Reputation:
Live: http://rafflebananza.com/Admin/Desktop/index123.html#
I am trying to use JQuery to obtain the height for the amount of administrators under the users section of the quick side bar you see to the right.
var temp = $('.Admins').height();
alert(temp);
The above what should be working script, regardless of if I enclose within document ready or window load, always returns the value of 0 and not the height.
Upvotes: 2
Views: 161
Reputation: 5565
The div Group Admins doesn't have height. Try to add float: left;
to Group Admins and you will get the height.
Upvotes: 0
Reputation: 4399
It's because of the float style in the child elements. Try adding this code to clear the float:
.Group.Admins::after {
content: '';
clear: both;
display: block;
}
Upvotes: 2