azqnow
08-03-2006, 03:11 AM
I have two totally unrelated tables that needs to automatically adjust depending on the size of the other...
I tried using document.getElementById('mirroringTable').style.height = document.getElementById('originalTable').offsetHeight
among other things.. is there a better way to do this?
when I put
alert(document.getElementById('originalTable').offsetHeight) it outputs the right height but the problem is
document.getElementById('mirroringTable').style.height
doesn't seem to be getting the values from the equation...
can I just do this in css? a dynamic css code? instead of editing it in <script language="javascript"> ??
Thanks
I tried using document.getElementById('mirroringTable').style.height = document.getElementById('originalTable').offsetHeight
among other things.. is there a better way to do this?
when I put
alert(document.getElementById('originalTable').offsetHeight) it outputs the right height but the problem is
document.getElementById('mirroringTable').style.height
doesn't seem to be getting the values from the equation...
can I just do this in css? a dynamic css code? instead of editing it in <script language="javascript"> ??
Thanks