Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Get div current pixel width by javascript in IE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get div current pixel width by javascript in IE



Hi Walter,

Yep, that did the trick. Thanks very much for pointing me in the right direction.

Mark

---------------

On Oct 16, 2006, at 1:24 PM, Walter Lee Davis wrote:

Here's a lovely writeup of the problem, hit number three or four on google: javascript width.

<http://www.quirksmode.org/dom/getstyles.html>

Walter

On Oct 16, 2006, at 4:01 PM, Mark Wheeler wrote:

Hi all,

I am trying to get the current width, in pixels, of a div (#middle). Everything works great in FF and Safari, but not in IE (PC - not concerned about IC-Mac). All I get is "Auto" for the width of the div. Here is a link to the test page.

http://www.tonedeafstudios.com/test12.html

Is there ANY way to get the current pixel width of the div? The content will change in the middle div, that is why I need to get the pixel width so I can adjust other things on the "real" page. Perhaps this is not possible. But if it is, I'm at a loss as to how to get it. Any help is greatly appreciated.

Thanks,

Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Get div current pixel width by javascript in IE (From: Mark Wheeler <email@hidden>)
 >Re: Get div current pixel width by javascript in IE (From: Walter Lee Davis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.