I want DivTest and IdOtherDIV to have the same width.
I attempted to set properties like this:
DivTest {
background: #007C52;
width: document.getElementById("IdOtherDIV").scrollWidth + "px.\n";
}
Is there a way to achieve this (considering that IdOtherDIV is dynamically created and its width may change with every page refresh)?