well i have this div… and i want its height to be in sync with a table’s height
the div will have random txt/images in it everytime the page loads.. so obviously the height is goin to change everytime…
I want to have the table’s height to be set accordingly to the div height thru javascript
[CODE]
function adjusttableheight()
{
var divh = document.getElementById(‘content’).Height;
var setheight = divh – 360;
var tableheight = document.getElementById(‘tablecontent’).height
if(tableheight<ttldiv)
{
setheight=tableheight.Height;
}
else
{
setheight=tableheight.Height;
}
}
my friend told me to do somethin like this.. but it doesnt work rly well…
the var divh is the DIV HEIGHT – Div id is “content”
the var setheight is the height i want the table to be
the var tableheight is wat it is, the table’s height…. table id=”tablecontent”
as you see, there’s a -360 in variable setheight, tht’s just something i have in there for visual functionality purposes…
so anyone find a mistake in my lil attempt at coding javascript..
do help me plz… THANK YOU VERY MUCH!!! RLY APPRECIATE IT!!!