I have an external style sheet with this in it:
.box {
padding-left:30px;
background-color: #BBFF88;
border-width: 0;
overflow: hidden;
width: 400px;
height: 150px;
}
I then have this:
<div id="0" class="box" style="position: absolute; top: 20px; left: 20px;">
When I then try to access the width of the div:
alert(document.getElementById("0").style.width);
A blank alert box comes up. How can I access the width property which is defined in my style sheet?
NOTE: The div displays with the correct width.