Click to See Complete Forum and Search --> : getting two divs the same height


Da Warriah
04-23-2003, 08:54 PM
is there some way to find the width and height of a certain div? i want to put div's on my site in a table sort of layout...the only problem, i need the two div's making up the navbar and the main content to be the same height...and i dont want to set a specific height for the main div, because it needs to expand and contract according to the content inside...

if theres no possible way, ill just use an iframe inside the main div, but this would be a lot easier and more efficient for me:D

DrDaMour
04-23-2003, 09:11 PM
document.getElementById("divid").height

Da Warriah
04-24-2003, 06:54 AM
so i would use something like:

document.getElementById("div1").offsetHeight = document.getElementById("div2").offsetHeight;