Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:21

Positioning menu


Poster: sherrylee
Dated: Wednesday March 5 2008 - 20:25:55 GMT

I am trying to position my verticle menu to the left and down the page so it will fit under a graphic. I can change the positon of the sub menu, but that is not what I want to do. In the code for this where do I make the changes?

Note: This is only my practice site I am working on, not my main website.

any help would be appreciated.

SherryLee

Here is the code on my page:fixMozillaZIndex=true; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;




with(menuStyle=new mm_style()){
align="left";
bgimage="http://www.milonic.com/menuimages/green_grad3d.gif";
fontfamily="Verdana, Tahoma, Arial";
fontsize="10pt";
fontstyle="normal";
fontweight="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
image="http://www.milonic.com/menuimages/sqauredot_black_5x5.gif";
imagepadding=4;
offbgcolor="#348017";
offcolor="#000000";
oncolor="#000000";
outfilter="fade(duration=0.5)";
overfilter="Gradient(GradientType=0, StartColorStr='339933', EndColorStr='FFFFFF')";
padding=4
pagecolor="black";
separatorpadding=4
separatorsize=2
subimage="http://www.milonic.com/menuimages/green_purpgradwhite.gif";
subimagepadding=5;
}

Re: Positioning menu


Poster: Ruth
Dated: Wednesday March 5 2008 - 20:33:27 GMT

Hi,

Menu position is done in the menus, i.e.

Code:
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=10;
orientation="horizontal";
style=menuStyle;
top=10;


The suboffsets at the top are to fine tune the position of the submenus when they open. You can also use top="offset=x"; left="offset=x"; for positioning menus, that code would be set up in the same area as I posted above, with the left and top in it. Note that if your menu is in a table, you'll have to post your page here so I can see it and figure how to set it up.

Ruth

Re: Positioning menu


Poster: sherrylee
Dated: Wednesday March 5 2008 - 21:50:01 GMT

Ruth,

This was helpful. Thank you! Now I have another question. I would like to space my menu items. For instance between home,milonic, partners, etc. I would like to spread them out. Again, I am using the same code I just showed you, and I am using the vertical orientation.

Thank you,
SherryLee

Re: Positioning menu


Poster: Ruth
Dated: Thursday March 6 2008 - 0:47:19 GMT

Hi,

Just to be on the same page, you keep talking about the style but are askign about things in a menu. Many of the properties can be put into the style but that means it will apply to all menus that use that style, some of the things can be put into the menu itself in the area I showed you so that it will only apply to that menu. So, if you want ALL menus that use the style you posted to have the exact same kind of spacing you can put the itemheight into the style, but if you only want some to have the spacing, then put it in the menu. You coudl also maybe use instead of itemheight separatorpadding, if you are using separators, this will place padding around the separator and thereby make it look like there is space between items.

Below my name are some links to various properties, style properties which go in the style area, menu properties which go in the menu area, and item properties which go in the item areas. Many of these properties can be either style, menu or item properties depending on where you define them. You need to look at the lists as some properties can only be used in one area.

Ruth