title: jquery .width() chrome and safari problem
body: <p>I have set in css the height of an image to a certain value and the width modifies automatically so that the aspect ratio is preserved. I'm using the .width() jquery function to get the width of the image after the css resized the image. in Firefox and internet explorer this works great but in chrome and safari the width returned is always 0 for each image. the code that i am using is the following:</p>
  
  <pre><code>var total=0; 
  var widthdiv=0;
  $(function(){
      $('.thumb').each(function(){
         widthdiv=$(this).width();
         total+=widthdiv;
         alert(widthdiv); //added so i can see what value is returned.
      });
  });
  </code></pre>
  
  <p>and the css for the images:</p>
  
  <pre><code>#poze img{
      height:80px;
      width:auto;
      border:0px;
      padding-right:4px;    
  }
  </code></pre>