webuser123
01-29-2010, 04:39 PM
Hi,
I have an absolute positioned div within a relative positioned div and would like to determine the height of the absolute div dynamically with some javascript. Basically I would like to set the height of the relative div to the size of the absolute div after I determine what the height is.
If I give var document.getElementById("divName").style.height , I get nothing back as a value. The absolute positioned div has no height to begin with. It just expands based on its content. Also, I'm using an external stylesheet in my webpage.
How can I get this value? Thanks!
I have an absolute positioned div within a relative positioned div and would like to determine the height of the absolute div dynamically with some javascript. Basically I would like to set the height of the relative div to the size of the absolute div after I determine what the height is.
If I give var document.getElementById("divName").style.height , I get nothing back as a value. The absolute positioned div has no height to begin with. It just expands based on its content. Also, I'm using an external stylesheet in my webpage.
How can I get this value? Thanks!