Horizontal Expand Up

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
cshontz
Advanced
Advanced
Posts: 13
Joined: Thu Jun 05, 2003 5:40 pm

Horizontal Expand Up

Post by cshontz »

How can I get a horizontal menu to expand upwards instead of downwards without relying on the end-of-page collision detection using version 5?

Is there a property for this?

The page I am designing is limited to a 760x460 area, and for some reason, I decided to anchor the menu to the bottom of this box without looking into the feasibility of menus that expand up.

The client's page may exceed 460h, resulting in empty page space between the 460h position and the end-of-page.

I suppose I could redirect the client to a custom browser window set to the dimensions of this area. In which case, the menu position would then be able to expand upward because it would be at the bottom of the page, but I don't really want to do this. I don't like when websites redirect me to smaller windows.

Any suggestions would be greatly appreciated! :)
cshontz
Advanced
Advanced
Posts: 13
Joined: Thu Jun 05, 2003 5:40 pm

Post by cshontz »

Okay, in the above post, I just assumed that when the expanded menus collide with the bottom of the page, they expand up instead. This does not appear to be the case - at least its not a default property.

Could this somehow be changed using the "overflow" property?

I've found a way to fudge the "expand up" problem, quite simply by typing a fixed pixel value into the "top" property. For instance:

"top = 341;"

When I do this, the menu expands pretty much where I want it to, but it is a fixed value that is not relative to the submenu content. If I want to add another menu item, I need to recalculate that value.

Font size might have an impact on this too, but I'm not sure.

Any help would be greatly appreciated. I hope there is a really easy solution to this problem. :)
Post Reply