making items fit within main menu table cell

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
kxojbob
Beginner
Beginner
Posts: 7
Joined: Fri Oct 10, 2003 4:08 pm
Location: Tulsa
Contact:

making items fit within main menu table cell

Post by kxojbob »

Hello,

I am developing a new site at:
http://www.kxoj.com/2008/pages/studio/index.shtml

I need the menu items to show up "XX" pixels below the main menu, which is made up of images. I have accomplished this by setting padding=10

However, the horizontal menu items extend on some beyond the width of the table cell the manu menu graphics are in (766 pixels).

is there a way to make all of the menu items align themselves within a specified width?

This may be covered somewhere but I cannot find it. Been searching for 3 days.

Thanks,
Bob
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: making items fit within main menu table cell

Post by Andy »

Hi,

Have you tried using offsets? You can apply both top and left offsets to menus like this top="offset=20"; this will shift the menu down by 20 pixels.

For instance, your Morning Show menu can be shifted down 20 pixels with this following code:

Code: Select all

with(milonic=new menuname("Mornings")){
style=menuStyle;
screenposition="center"; 
top="offset=20";
alignment="left";
orientation="horizontal";
aI("text=Morning Blog;url=http://www.kxoj.com/morningblog/;")
aI("text=Heather's Cookbook;url=/cookbook/;")
}
Just play about with the value until you get it right and then apply the same value to all of your sub menus.

HTH,
Andy
kxojbob
Beginner
Beginner
Posts: 7
Joined: Fri Oct 10, 2003 4:08 pm
Location: Tulsa
Contact:

Re: making items fit within main menu table cell

Post by kxojbob »

Perfect! Thanks so much!
Post Reply