I want to get the dynamic heights of some html divs. I am not programmatically applying height to them (so I don't know their values). If I fetch the height in mozilla I am able to fetch the exact value in px but in case of IE it gives "auto". How do I get their exact values? Please help

Recommended Answers

If I understand you correctly, the exact height is already known to you in mozilla? If that is the case, then that is the hight, or am I missing the point here?

Jump to Post

All 2 Replies

If I understand you correctly, the exact height is already known to you in mozilla? If that is the case, then that is the hight, or am I missing the point here?

Are you using Firebug in firefox? i don't think it will give you the height if it's not specified, but it will show you the height of the objects inside the div that do have height defined, along with padding, borders and margins.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.