[jQuery] Re: order of script not right (explained inside)
My god. I cannot believe I dind't think of something so elemental. Thank you! ricardobeat wrote: CSS z-index property: http://www.w3schools.com/Css/pr_pos_z-index.asp #dropdownpanel { z-index: 1 } cheers, - ricardo On Nov 5, 2:00 am, FastNOC [EMAIL PROTECTED] wrote: I'm doing development on two sites right now. both are quite far from finished. I liked the panel script fromhttp://www.javascriptkit.com/script/script2/dropdownpanel.shtmlhere and it works. You can see it here: (no this isn't advertising. almost all links are dead, there's no content and nothing to buy).http://15.e-referrer.com/cms/index.php/red/tips/First Webiste (it works fine here) (FYI it's a panel that comes down from the top when you click the black button that says 'member login') Now, I decided to add it to the next site to use just the same. It works, but the order is off and it's appearing underneath everything else on the page. I can't figure out why. At first I thought it might be the order of the css elements but that's not it. Can anyone take a guess why this is happening? http://e-places.net/index.phpSecond site where it's broke -- View this message in context:http://www.nabble.com/order-of-script-not-right-%28explained-inside%2... Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/order-of-script-not-right-%28explained-inside%29-tp20335896s27240p20341371.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: order of script not right (explained inside)
CSS z-index property: http://www.w3schools.com/Css/pr_pos_z-index.asp #dropdownpanel { z-index: 1 } cheers, - ricardo On Nov 5, 2:00 am, FastNOC [EMAIL PROTECTED] wrote: I'm doing development on two sites right now. both are quite far from finished. I liked the panel script fromhttp://www.javascriptkit.com/script/script2/dropdownpanel.shtmlhere and it works. You can see it here: (no this isn't advertising. almost all links are dead, there's no content and nothing to buy).http://15.e-referrer.com/cms/index.php/red/tips/First Webiste (it works fine here) (FYI it's a panel that comes down from the top when you click the black button that says 'member login') Now, I decided to add it to the next site to use just the same. It works, but the order is off and it's appearing underneath everything else on the page. I can't figure out why. At first I thought it might be the order of the css elements but that's not it. Can anyone take a guess why this is happening? http://e-places.net/index.phpSecond site where it's broke -- View this message in context:http://www.nabble.com/order-of-script-not-right-%28explained-inside%2... Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[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-tp20335896s27240p20355237.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: order of script not right (explained inside)
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.