View Full Version : AnyLink Drop Down Menu - border issue *and* FF alignment issue

09-24-2007, 04:31 AM
1) Script Title: AnyLink Drop Down Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem:

I love this script, but am having two problems with it that I have not been able to resolve for some hours.

First, I don't want the individual links to have borders around them; I just want the entire dropdown menu to have a border around it. I have accomplished this, but in *either* case, not only do the borders appear on the dropdown menu (as desired), the borders appear around the .div itself, which really messes up the page design. None of the other divs have borders around them, which is how it should be.

Second, the dropdown menu's alignment is correct when viewed in IE7, but in Firefox, it's way off to the left.

Neither of these issues appear on the script's demo page.

I'm sure that this will turn out to be an ID10T error (too much staring at code for too long?), but am risking possible humiliation, as I would love the menu to work properly!

Here's the page I'm working on: http://www.aiodesign.us/index-javatest.html

Here's my CSS text (the menu div information is in my separate CSS file for this page):

/* dropdown menu */
#dropmenudiv {
border:1px solid black;
#dropmenudiv a {
border: 0px solid black;
#dropmenudiv a:hover {

Or if needed, the entire CSS file can be viewed here: http://www.aiodesign.us/css/LS.css

I realize that the 100% width code is missing in the CSS code above. I removed it because if I didn't, at first the mouseover blocked out the existing webpage at the height of the menu for the entire width of the screen. Later when I had resolved that issue and tried to put it back in, it moved the menu gif file and menu itself as far left as possible. I want the menu gif file to reside where it is now. If I tell the div to float right, though, the entire page is shoved to the left in IE7 (no longer centered) and the menu appears to the right of everything else rather than appearing beneath the menu gif file as it should.

Thank you so much for anyone who can help!

P.S. In case a viewer of this post is wondering... I haven't yet posted the default page for non-Java-enabled browsers.

09-25-2007, 07:32 PM
Does anyone have ideas about this? (See my previous post...) I could really use the help if anyone's looking for sainthood out there. :)

12-17-2007, 05:30 PM
I'm also having trouble with this. I would really appreciate the help.

12-18-2007, 05:58 AM
mizzbec, in the future, please start your own thread when asking a question, since right now, we have no idea which part of the original issues you have as well. But to take a stab, if you mean the issue with:

the dropdown menu's alignment is correct when viewed in IE7, but in Firefox, it's way off to the left.

This can usually be resolved by making sure the HTML for the drop down DIVs themselves are outside any container other than the BODY. For example, move them to the very end of the page, right above the </body> tag.