Element.offsetWidth should provide the adjusted width of an element. I think the standard way to center a div is to set the left and right margins to "auto".

Blair

On 6/22/06, Andrew Scott <[EMAIL PROTECTED]> wrote:


Has anyone got a bit of JS code that gets the size of a div element that has
had dynamic content added using HTTPRequest, and able to center another div
inside this one?

I am having a huge brain fart today, it seems easy but either I am doing
something wrong or IE doesn't like me today:-)




Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---

Reply via email to