Well - as near as I can figure its an IE issue. I use this code to draw a box inside a box (div's) and it works fine with FF and Opera, well it works the way I expect it to. But in IE it does nothing.
Can anyone see what I am doing wrong or know a work around?
Can anyone see what I am doing wrong or know a work around?
Code:
<body>
Box n Box Java test
</body>
<script language="javascript">
var d01 = document.createElement("div");
d01.setAttribute("id", "d_01");
d01.setAttribute("style", "height:150px; width:150px; position:absolute; background-color: #660066;top:50px; left:50px; ");
document.body.appendChild(d01);
var d02 = document.createElement("div");
d02.setAttribute("id", "d_02");
d02.setAttribute("style", "height:50px; width:50px; position:absolute; background-color: #ffffff;top:50px; left:50px; ");
d01.appendChild(d02);
</script>