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.
here's the code: It really works with Google Chrome. But with IE or Firefox just won't work.
<div id="div1" style="position:relative; background-color:#000000; width:100px; height:20px; color:#ffffff; text-align:center;">
<div id="div2" style="position:absolute; background-color:#00ff00; left:0px; top:0px; bottom:0px; width:10px; text-align:right;">
</div>
</div>
<script>
var container = document.getElementById("div1");
container.style.width = '300px';
</script>