https://www.icyphoenix.com/viewtopic.php?f=36&t=4030 ----------------------------------- tc1967uk Wed 09 Apr, 2008 21:33 Adding XS Dropdown & OnClick Menus ----------------------------------- Hi I've tried to integrate XS_Dropdown_&_OnClick_Menus_1.1.0 into IP 1.2.0.27 as I did in previous versions. I've removed the following from overall_header.tpl, which did removed the menu options on the header: [code] {L_HOME}    {L_INDEX}    {L_NEW2}    {L_POSTS}: {L_NEW2} • {L_DISPLAY_U} • {L_DISPLAY_M} • {L_DISPLAY_P}    {L_PROFILE}    {L_SEARCH}    {L_FAQ}    {L_REGISTER}    {L_LOGIN_LOGOUT2} [/code] and inserted the following 3 sections of code: [code] [/code] [code] [/code] [code] Main Links   Help   Login / My Links   [/code] It [b]does [/b]create the menu, but it's above the logo instead of under it (see below), plus it's aligned on the left instead of in the middle. Can anyone help? [img]http://www.icyphoenix.com/files/images/1243/untitled1.jpg[/img] ----------------------------------- tonyf12 Wed 09 Apr, 2008 21:44 Re: Adding XS Dropdown & OnClick Menus ----------------------------------- I don't entirely know how the template works but my guess would be to move it down a and put text-align:right into your CSS. ----------------------------------- moreteavicar Wed 09 Apr, 2008 22:50 Re: Adding XS Dropdown & OnClick Menus ----------------------------------- Yes, its all within a table, so you need to put it in both and e.g.: and close with: Note the colspan is important as the header table is divided into 3 columns ;) *Edit - moved to templates and styles ----------------------------------- tc1967uk Sat 12 Apr, 2008 10:47 Re: Adding XS Dropdown & OnClick Menus ----------------------------------- Thanks moreteavicar, that worked. I've got it in the right row now, but I can't get it aligned correctly. I tried to edit style_ice.css, but I can't get the menu to stay in the middle of the row AND get the menu options and their bullet points aligned on the left at the same time. Can anyone help? ----------------------------------- Lopalong Sat 12 Apr, 2008 12:27 Re: Adding XS Dropdown & OnClick Menus ----------------------------------- ;) After you have centred the main menu's, try this example for the dropdown's: [code linenumbers=false]//Contents for Main Links var menu1=new Array() menu1[0]='
 Home
'[/code] You may also want to try
"Home" "Home"< Edit: Oops! :oops: I've only just noticed that the strings you are using contain other errors. Use this example instead: And title is not really required. [code linenumbers=false]//Contents for Main Links var menu1=new Array() menu1[0]='
 Home
'[/code] ----------------------------------- tc1967uk Sat 12 Apr, 2008 17:41 Re: Adding XS Dropdown & OnClick Menus ----------------------------------- Worked a treat, Lopalong - thanks. I kept the Alt Title stuff as I thought it was best practice to have text show up (at least in Firefox, it doesn't seem to work in IE) when you hover your cursor over it. I believe people with sight problems can use software to read the links out to them? It all seems to work nicely now, anyway. :mryellow: ----------------------------------- Lopalong Sun 13 Apr, 2008 01:12 Re: Adding XS Dropdown & OnClick Menus ----------------------------------- [quote user="tc1967uk" post="27642"]Worked a treat, Lopalong - thanks. I kept the Alt Title stuff as I thought it was best practice to have text show up (at least in Firefox, it doesn't seem to work in IE) when you hover your cursor over it. I believe people with sight problems can use software to read the links out to them? :mryellow:[/quote] That's very thoughtful of you. ;) This example for "Hover over the image" should work in both IE and FF, maybe it's because it was wrapped-out that it didn't work. [code linenumbers=false]Home[/code]