title: How to get width of a Div or table in Pixels?
body: <p>The main reason of this question is because I need the Width of a DIV element which holds an image, but the resize script (timtumb) only accepts pixel size and not % (will be great). for example : <pre> timthumb.php?src=castle1.jpg&amp;h=230&amp;w=640 </pre> 
  If I set the width 640 I will have the image size to be displayed on PC will be Ok, but this same page will need to be shown on tablet or cellphone and the width on these devices are narrow, for example 480px, so  the DIV can be adjusted to 480px, but the scrip line need to change to:</p>
  
  <pre> timthumb.php?src=castle1.jpg&h=125&w=480 </pre> 
  
  <p>this script only accepts numbers and not % or px <br>
  I can do a multiple line script and hide some of these DIV's with CSS as responsive, but I want to enhance this code script :) if it possible, if not I will do a responsive patch.</p>