DynarchMenu: positioning testAs you can see by looking in the sources of this page, our menu gets positioned where the toplevel <ul> element is. In this page we included it in the second row of a table and aligned it in such a way that it will stay at the bottom of the page, assuming the page does fit in the browser view. In other words: why learning “yet another positioning technique”? You can rely on any technique that you know so far; you position the menu just like you position any HTML element in page—use TABLE, DIV-s, CSS, position absolute or fixed, whatever. The menu does not have to care about this—it gets generated in place of the UL element. This page also demonstrates the fact that submenus will be opened in the most intuitive position. They won't get off the screen. The algorithm that does submenu positioning works this way:
Normally, the reserves above do not happen. If they happen for your menus, then it's clear that you have to rethink and reorganize your menus. Remember this golden rule: if your menu is too long, then people won't browse it. You don't want this to happen. Categorize and organize it (using submenus) so that it fits right. |