onborder not working with relative positioning

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
dcane
Beginner
Beginner
Posts: 5
Joined: Thu May 18, 2006 5:01 pm

onborder not working with relative positioning

Post by dcane »

Greets all,

Great app - I'm using it in a ton of places. I'm having an issue with something so simple, that I wonder what's up (I'm sure its PEBKAC). Anyways, the menu I'm having problems with is a horizontal menu with nothing fancy:

with(actionBarStyle=new mm_style()){
bordercolor="#999999";
borderstyle="solid";
borderwidth=1;
fontfamily="Arial, Helvectica, Verdana";
fontsize="75%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#eeeeee";
offcolor="#000000";
onbgcolor="#CDE8FE";
oncolor="#000000";
onborder="1px solid #8095E4";
offborder="0px solid #8095E4";
padding=5;
separatorcolor="#999999";
separatorsize=1;
subimage="/images/black_7x7_down.gif";
subimagepadding=6;
}

What's odd is the menu works, but the 1px onBoder is showing up far below and to the right of the item im over.

The code that draws the menu is:

out.println("<DIV ID=\"actionbar\" CLASS=\"actionbar\">");
out.println("<SCRIPT TYPE=\"text/javascript\">");
out.println(" with(new menuname(\""+ MENUNAME +"\")){ ");
out.println(" style=actionBarStyle; ");
out.println(" alwaysvisible=1; ");
out.println(" orientation=\"horizontal\"; ");
out.println(" position=\"relative\"; ");
out.println(" menuwidth=\"100%\"; ");
out.println(" margin=3; ");
out.println("} ");
out.println("drawMenus(); ");
out.println("</SCRIPT> ");
out.println("</DIV>");

The actionbar style is:

.actionbar{
background-color:#eeeeee;
width: 100%;
margin-bottom: 10px;
}


I know you really encourage code samples that are external, but I'm behind a firewall that isnt open. If there is nothing obvious in the above, I'll create a strawman outside the firewall.

Thanks in advance!
Post Reply