problem w/ getting max heigth of child elements (esp. p-tags)
problem w/ getting max heigth of child elements (esp. p-tags)
Hello,
we have a parent div-container and we would like to detect the maximum height of 3 p tags (see linked jsfiddle).
We used the following comment to get the bottom of each children element in the div container:
$(window).scrollTop() + offsetTop + element.outerHeight( true );
If you make the windows smaller, you will get a wrong maximum height of the p-tags.
If you look up for the values in the Firebug they will be different. (Were using
.).