Click to See Complete Forum and Search --> : Hierarchical Menus on a Centered Page?


vmarasigan
01-06-2004, 02:39 PM
(Moved from a less specific message board):

I was wondering if it was possible to use Heirarchical Menus on a site which is aligned to the center of the page.

My experience with HMs is that the only way to define an absolute position for them to pop up is to align the buttons to the left of the screen like this:

http://www.roadrunnersports.com/cgi.../rrs/rrHome.jsp
(I did not design this site)

But what if the page is centered, like this?
http://www.douron.com/

Can Hierarchical Menus work here too? If so, can anyone provide an example of this in action?

dragle
01-07-2004, 08:35 AM
Hi,

The answer is "it depends." Depends, that is, on the menuing system you use. In our own HierMenus, for example, we allow pop up positioning based on an absolute x/y position, a position relative to the current position of the mouse when the popup is called, or a user-defined position. The user defined option allows you to plug in your own customized script that returns the x/y position where the menu should appear, and one such example of this, that allows for centered menus, is provided with the HM distribution. In your case, you could use this centering routine in combination with a fixed offset (since your content is a fixed width) to move the popup menus next to the menu spawning links.

But again, the main point is that the menu positioning possibilities depend on the menu system you choose; it's not any type of "built-in" limitation to DHTML menus in general.

Cheers!