Jump to content

How to get the Height of a dynamic TD?


JeePI

Recommended Posts

Hi, im working a project that has a graph, and i would like that "height" graph to follow the height of another TD.But i just can't get the height of this TD since it is not fixed.<td width="320" id="heightGraph">Some images taking different space depending of the parameters of the page</td><td width="45">"graph in here"</td><td width="320" id="heightGraph">Some images taking different space depending of the parameters of the page</td>I would like that my graph change of height depending of TD heightGraphi have tried document.getElementById("heightGraph").offsetHeight and it returns 0... i tried with innerHeight, clientHeight and style.Height and its the same...Im lost! Help me plz :)JeePI

Link to comment
Share on other sites

:) this really confused me. :) if your adding an img betwen the td tags it will automaticly change to that height if you have not added a fixed value ofcourse.
I would like that my graph change of height depending of TD heightGraph
<img height="100%" src=".."> if its fixed valueis it this that you where after ?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...