- Create Account

Centering Cacading Menu

Forums > Other DHTML / JavaScript > Centering Cacading Menu
Author
Message

1) Gareth Group: Members
Posts: 2 Joined: 23 Apr 2006 Location: Devon, UK IP: 82.153.--.--
Hi Angus
How can I get the cascading menu to center in a browser window?

I tried to caculated the window size and insert a variable that applied the correct value to center the root menu. I used the code from the link below but it appears to conflict with what is already up:
http://www.webmasterworld.com/forum83/570.htm
 
I  have also tried to adjust the div style using the ideas from the link below, but once again it screws things up (menu disappears):
http://www.bluerobot.com/web/css/center2.html
 
I'd  really appreciate your help!

Regards
Gareth

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.173.--.--
Er, try posting or reading in the Popup Menus: Help forum for a start :). I got your email but I'll answer here so everyone can read it.

Long story short, ensure you get the latest version from this site (v5.2) and look inside its "pop_syntax.html" file for the "Advanced Positioning" section which covers this sort of issue nicely.

Good luck - Angus.

3) Gareth Group: Members
Posts: 2 Joined: 23 Apr 2006 Location: Devon, UK IP: 82.153.--.--
Just spent the afternoon tinkering with the new version; SWEET!

Many thanks!

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.