title: ie7 clientWidth and clientHeight problems
body: <p>I've tried to get the offsetWidth and offsetHeight properties like so:</p>
  
  <pre><code>&lt;div id="somediv" class="some_class_with_dimensions"&gt;&lt;/div&gt;&lt;script...&gt;alert(document.getElementById('somediv').offsetWidth);&lt;/script&gt;
  </code></pre>
  
  <p>Unfortunately, on IE7 offsetWidth only works if i call in on window.onload, otherwise it just returns 0. Does anyone know any other way around this problem, because i need to immediately work with "somediv" just like in real browsers.</p>