[Javascript] Getting the width property of div

Paul Novitski paul at novitskisoftware.com
Tue Apr 5 10:33:03 CDT 2005


At 08:03 AM 4/5/2005, Alan Gardner wrote:
>How do I find out the current width of a div?

Alan,

I think what you're after is offsetWidth.  See Peter-Paul Koch's bit on 
Offset at http://www.quirksmode.org/dom/getstyles.html

Paul 





More information about the Javascript mailing list