PDA

View Full Version : Drop down menu: Center positioning the menu?



JackJack
05-15-2008, 06:19 PM
1) Script Title: Drop down/ Overlapping Content script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/overlapcontent.htm

3) Describe problem:

I want to center position the drop down menu. How can it be centered directly under the "trigger" link?

See my example here: http://jsutergraphix.com/dropDownMenu/

:)

JackJack
05-15-2008, 09:12 PM
I'm able to offset the menu horizontally, but that is not what needs to be done. The menu should stay centered according to the parent "trigger" with every window size. Offsetting it will look completely different if the window is scaled down and up. That's why I have the percentages... to scale with the window.

Still working on it.

:confused:

JackJack
05-16-2008, 12:03 AM
Still at it. I've tried ton's of different things throughout the day. Seems this DIV has to line up top-left, bottom-left, top-right, or bottom-right. There's no top-middle, or top-center I guess.

Is it even possible to line these up vertically? I haven't seen any sample here on DD or other javascript tutorial sites.

See my example here: http://jsutergraphix.com/dropDownMenu/

:confused: