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:24
making items fit within main menu table cell
Poster: kxojbob
Dated: Monday January 7 2008 - 22:25:04 GMT
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
Re: making items fit within main menu table cell
Poster: Andy
Dated: Tuesday January 8 2008 - 17:44:48 GMT
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:
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/;")
}
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
Re: making items fit within main menu table cell
Poster: kxojbob
Dated: Tuesday January 8 2008 - 19:48:17 GMT
Perfect! Thanks so much!