Board Logo

Centering Generated Menu
johrik - 1/15/2004 at 09:21 AM

Hi all,

I built and was generated an online menu which works and looks fine. However I wanted to centre the menu so when I add it to my html page it will be in the centre of the page rather than aligned left which is what it is now....

Does anyone have any suggestions on doing this? I wasnt sure which files need to be edited to perform this,

Thank for any help,

rock - 1/15/2004 at 10:47 AM

Inserting menu initialization block within relatively positioned HTML element (table cell for example) will not change menupositioning. Use Menu Geometry structure for that.

johrik - 1/15/2004 at 11:28 AM

Thanks for the reply,

Ok so it looks like i will have to change some of the code in one of the JScript files. I havent got experience with JScript but could you tell me which JScript file needs to be edited to get the menu centered (Setting menu geometry)?

Im assuming its either the menu or the menu_tpl file that needs changing....

rock - 1/21/2004 at 11:29 AM

You should edit your tpl?.js file and change values of following settings:
// menu block offset from the origin:
// for root level origin is upper left corner of the page
// for other levels origin is upper left corner of parent item
MENU_POS['block_top'] = [125, 23];
MENU_POS['block_left'] = [15, 0];

Back to forum: