Relative positioning for DHTML menu #2

Home » Forums » Free DHTML Menu Builder » Relative positioning for DHTML menu #2


Registered User
3 posts

Firstly a huge thanks to all you kind and clever people who make this forum work. I have found so many solutions already but I am stumped with this one issue. What code do I need to change to make my DHTML menu have a relative (as opposed to absolute) position. i.e. currently menu moves around when I change the size of my browser window. I have seen some related posts to this question but the code appears quite different to what I have generated. I've attached a text file with the code generated in the free DHTML menu builder. FYI I have also been using VSD and HTML editor. Thanks again, you lot rock! Morgan.


Registered User
3 posts

Yikes, here is the file!
Attachments:


Senior Advisor
7,525 posts

Hiya Morgan,

I'm not sure how you do this with the CC DHTML Menu maker, but with the menu maker I use, it uses an anchor tag. I'll assume there must be something in CC's program that allows you to do this, but I've never used it so I'm not fully 100% sure on it. If someone doesn't answer this by tomorrow I'll fire it up and see what it's like on that point and see if I can help there. I'm going to assume someone will already know this answer though :) Jo Ann

http://lbwebsites.com - Web Design & Web Hosting
http://cattownrescue.org ... Current project in the works, love cats! :)
http://northbaldwinliteracycouncil.org .... Our local Literacy Council

Due to spammers the below sites are not viewable outside the US, sorry guys :(
http://proudayou.com - My sons website for his music business
http://rockinwithmainstreet.com - My brother's band website


Senior Advisor
3,144 posts

Morgan,

A link your your site using the DHTML menu would be helpful.

You can enclose the DHTML menu code inside a span tag with id="themenu" and then manually change the code to the menu at:
var TargetLoc=''; // span id for relative positioning
and make it read:
var TargetLoc='themenu'; // span id for relative positioning

Hope that helps.

Bill R.
First Baptist Church
Brighter Day Charities
Roberson Family


Registered User
3 posts

Hi Bill (and Jo Ann)
Thanks for that. I have seen previous posts regarding inserting the menu as a span but was still having problems. I have since now discovered that I had set the Horizontal Alignment option (in the options tab of DHTML) to 'center' instead of 'left'. Regenerating the code with this setting and adding the <span> has fixed the problem. Thanks again! FYI my site is www.bivowacky.com. Blessings..


Senior Advisor
7,525 posts

nice site Morgan, neat product too, very interesting looking item there :) Jo Ann

http://lbwebsites.com - Web Design & Web Hosting
http://cattownrescue.org ... Current project in the works, love cats! :)
http://northbaldwinliteracycouncil.org .... Our local Literacy Council

Due to spammers the below sites are not viewable outside the US, sorry guys :(
http://proudayou.com - My sons website for his music business
http://rockinwithmainstreet.com - My brother's band website


Registered User
2 posts

Hi Bill, I have design my church website completely using VSD. I don’t know anything about HTML. I am having trouble understanding what part of the code html needs to be modified and I am completely stumped where to add the span tag you referenced.

I found this line from a test menu I was building
var TargetLoc='themenu'; // span id for relative positioning
Is this exactly how the code should look?

I am attaching the code from the dhtml program, would you mind showing me what I need to change and where the span tag should go?

Thanks for all your help.
Attachments:

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.