Hi,
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
How to fetch the exact height attribute of html divs in IE?
Started by greenerworld007, Nov 05 2009 05:02 AM
1 reply to this topic
#1
Posted 05 November 2009 - 05:02 AM
|
|
|
#2
Posted 05 November 2009 - 08:10 AM
<html>
<head>
<title>Test Height</title>
</head>
<body>
<div style="height:32px;border: 2px solid green;" id="one"> hello world</div>
<a href="javascript:alert(document.getElementById('one').style.height);">Click</a>
</body>
</html>


Sign In
Create Account

Back to top










