javascript div container width resize problem
<p>hej guys,
I've got a problem trying to resize the width of a div container. I really don't know why it's not working...
Thx for responding.</p>

<p>here's the code: It really works with Google Chrome. But with IE or Firefox just won't work.</p>

<pre><code>&lt;div id="div1" style="position:relative; background-color:#000000; width:100px; height:20px; color:#ffffff; text-align:center;"&gt;
    &lt;div id="div2" style="position:absolute; background-color:#00ff00; left:0px; top:0px; bottom:0px; width:10px; text-align:right;"&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;script&gt;
var container = document.getElementById("div1");
container.style.width = '300px';
&lt;/script&gt;
</code></pre>
