Expand|Select|Wrap|Line Numbers
- <html> <body>
- <div id="mydiv" style="position: absolute;"> Hello </div>
- <script>
- alert(document.getElementById("mydiv").style.top);
- </script>
- </body> </html>
I basically have two divs, "float: left" for both. The height of the one on the left is determined by its content, and I need to force the height of the one on the right to be exactly the same as the one on the left (I'm turning the scroll bars on for it).