Relative Position (in a DIV) - Vertical Left

This sample demonstrates a left-aligned vertical main menu with relative position inside a DIV container on the page.

The following settings are used for the main menu in the last section (i.e. MENU TREE FEATURES) of the configuration file (c_config.js):

// MAIN-MENU FEATURES
'vertical', // ItemsArrangement ('vertical','horizontal')
'relative', // Position ('relative','absolute','fixed')
'0',        // X Position (values in CSS valid units- px,em,ex)
'0',        // Y Position (values in CSS valid units- px,em,ex)
false,      // RightToLeft display of the sub menus
false,      // BottomToTop display of the sub menus
...

Notes

  1. The container DIV in this example has red background and 3px padding applied so that you could notice it easily. You could nest the menu tree in any DIV on your page.

Download this sample

You can download the complete example or just see the configuration file and the images used for it.

Configuration file


Shortcuts and Related

Bookmark / Share