Dynamic div - width
Hi,
I have a div (div1) with no width specified as it contains dynaic data and expands to fit the data in.
I want to place another div (div2) beside it to the right - so on the same y pos as div1 but the x pos = (div1 width) + 5px
how do you access the div width of div1
div = document.getElementById(id)
divWidth = div.style.width;
doesn't return anything as the width element is dynmaic.....
But there must be a way...
|