My guess is it's an absolutely positioned element, which won't respond well to auto margins.
If this is the case, one option would be to measure the width of the window at the time of drop-down, calculate and set the css left appropriately. If it is a static/relatively positioned element, and auto margin isn't working, I'm not sure what the problem might be. JK -----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of FastNOC Sent: Wednesday, November 05, 2008 9:06 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: order of script not right (explained inside) OK hopefull this is the last question. I need this to be smaller. the script takes up the whole width because the css specifies 100%. So i shortened it to 980, the width of my page. But I want it centered. it aligns left. text-align:center centeres the text within the div, not the whole panel, and margin-right:auto;margin-left:auto does nothing. Any thought on how to center this? -- View this message in context: http://www.nabble.com/order-of-script-not-right-%28explained-inside%29-tp203 35896s27240p20355237.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.