Forum Moderators: open

Message Too Old, No Replies

JavaScript Drop Down Menu

Need to Auto-Center it.

         

SynergyWD

2:17 pm on Sep 11, 2004 (gmt 0)

10+ Year Member



I found a drop-down menu at dynamic drive from here: "DynamicDrive.com" then "Menus and Navigation" and finally "Jim's DHTML Menu v5.7". I downloaded it and was very pleased except for one point... How do you auto center it in either the config.js file or in the HTML? When you first get it, it uses a 160 pixel indent which won't work right on all resolutions. Can someone PLEASE help me?

crashomon

6:54 pm on Sep 14, 2004 (gmt 0)

10+ Year Member



Greetings,
how about placing the content within a centered DIV?

You may be able to add some CSS to place the content where you like.

Otherwise, track through the code and test some changes until you find the 'trigger' that you're looking for.

HTH,

Patrick Elward

SynergyWD

7:05 pm on Sep 14, 2004 (gmt 0)

10+ Year Member



Tried it, tried it and still can't find it... I've tried eveything I know and was still unsuccessful. I need someone who knows Javascript to tell me what I'm doing wrong from that point. Thanks for trying but it still don't work.

crashomon

7:54 pm on Sep 14, 2004 (gmt 0)

10+ Year Member



did you try the help forum within dynamic drive itself?

Are you using the horizontal or the vertical menu?

Can you be more specific about this 160px offset? Is it the edge of the menu? (the top left?)

You mention it "not working" in different resolutions, do you actually mean browser width or just resolution? What browsers do you have issues with, all, some or none.

Thanks and hopefully additional information will help clarify what your needs are.

Thanks,

Patrick

SynergyWD

11:12 pm on Sep 14, 2004 (gmt 0)

10+ Year Member



Actually, I forgot to end this thread... My friend gave me the code I was looking for. Sorry if I wasted your time. :(