Unwanted extra space after positioning the Milonic menu.

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
rgrowar
Beginner
Beginner
Posts: 2
Joined: Fri Nov 10, 2006 10:51 am

Unwanted extra space after positioning the Milonic menu.

Post by rgrowar »

Hi,

I am using the milonic menu for dynamic generation of menus in my application. I wanted a relative position for my menu and so have used the "position=relative" parameter and offset=0 for the top parameter as you can see in the following code:
with(milonic=new menuname("Main Menu"))
{
style=menuStyle;
screenposition="Center";
top="offset=0";
left="offset=223";
alwaysvisible=1;
orientation="horizontal";
position="relative";
--------
}

This places the menu a bit below than i want as can be seen in the following image:
http://220.227.238.52/milonic/Before_Positioning.htm

Changing the value of offset in the top parameter, i.e. setting top="offset=-62", moves the menu to the top of the page but leaves a blank row at the position where it showed up earlier as can be seen in the following image:
http://220.227.238.52/milonic/After_Positioning.htm

Any help to remove this unwanted space would be appreciated.

Thanks in advance.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Well, I'm not real good at all the stuff you have but, the reason you have that space is that you are putting the menu in that cell and just because you're using a negative offset to move it up doesn't change the fact that it's in that cell. So, what you need to do is actually put it in that cell up above the BASIC item, then the cell it's in now disappears since nothing is in it, and the other part moves up.

Ruth
rgrowar
Beginner
Beginner
Posts: 2
Joined: Fri Nov 10, 2006 10:51 am

Post by rgrowar »

Hi,

Thanks a lot for the help. It did solve the problem :)
Post Reply