I'm stuck..
My menu has 3 levels..
I wanted to center the 2nd level menu under its 1st level. I am not sure how to explain this. Please see the attached image for a clearer explanation.
mouseover [Menu] will shows me list of 2nd levels. I want those [L2 Menu x] to be centered under [Menu]..
How can I do this? Thanks!
All menu are in image, not text[/img]
Last edited by slomo on Mon Apr 09, 2007 8:57 am, edited 1 time in total.
If you are using images for the menu items, then you should be able to use offsets to 'center' the submenu. So, let's say the image for the word Menu is 40px wide, and the images for the L2 Menu 1 is 100px wide, normally the left side of the submenu will open even with the left side of the main parent item, so using a left="offset=-30"; should shift that menu back toward the left by 30px thereby 'centering' it. Using images allows this to be done pretty easily, it's only with text you can't really use that since users' browser text size might be bigger or smaller.
Well, I can't give you figures since I don't have your menu, i.e., the page with the menu and the images to be able to figure out the correct offset numbers.
One thing, I notice you have the main menu inside the menu data file and you have it set to be position='relative'; please read the information about positioning relative menus from the links found here
As to where you put the offset, you put it in the submenu which is being opened. For example, if it has to be shifted back to the left by 30px you would code it as: