word wrap in menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Jessop
Beginner
Beginner
Posts: 5
Joined: Sun Feb 10, 2008 10:10 pm

word wrap in menu

Post by Jessop »

Other than using a graphic as the button how do you stop the menu from word wrapping when someones using a strange size screen or has IE sized strangly? I can dupicate this if my IE window isn't full screen or i change my screen size to 800x600? Thanks in advance and have a great day.


Working Menu:
Working Menu
Working Menu
Menu Working.JPG (6.18 KiB) Viewed 2926 times
Bad Menu:
Bad Menu
Bad Menu
Menu Error.JPG (5.78 KiB) Viewed 2924 times
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: word wrap in menu

Post by Ruth »

Hi,

There is a style and an item property called nowrap. In the style for that menu use nowrap="on";

You can also do it the old fashioned way using non breaking line space code instead of putting a space between word and symbols

Code: Select all

 
So that pick up and go thing would be

Code: Select all

text=PickUp -n- Go;
But, I think the nowrap would be easier :)

Ruth
Jessop
Beginner
Beginner
Posts: 5
Joined: Sun Feb 10, 2008 10:10 pm

Re: word wrap in menu

Post by Jessop »

I tried the nbsp first since i found that by searching the forum you can see that below:

I just tried the nowrap do i have it in the wrong place?

Code: Select all

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
top=165;
left=160;
itemheight=21;
itemwidth=110;
orientation="horizontal";
style=menuStyle;
menualign="center";
position="relative";
menu="nowrap";

aI("align=center;bgimage=/menuimages/itemblue.gif;overbgimage=/menuimages/itemyellow_on.gif;text=Home;url=http://century-banquetcenter.com;");
aI("align=center;bgimage=/menuimages/itemblue.gif;overbgimage=/menuimages/itemyellow_on.gif;text=Calendar;url=http://www.american-polishcenturyclub.com/calendar/default.asp;");
aI("align=center;bgimage=/menuimages/itemblue.gif;overbgimage=/menuimages/itemyellow_on.gif;showmenu=Weddings;text=Weddings;");
aI("align=center;bgimage=/menuimages/itemblue.gif;overbgimage=/menuimages/itemyellow_on.gif;showmenu=Funerals;text=Funerals;");
aI("align=center;bgimage=/menuimages/itemblue.gif;overbgimage=/menuimages/itemyellow_on.gif;showmenu=Showers;text=Showers;");
aI("align=center;bgimage=/menuimages/itemblue.gif;overbgimage=/menuimages/itemyellow_on.gif;showmenu=Corporate;text=Social;");
aI("align=center;bgimage=/menuimages/itemblue.gif;overbgimage=/menuimages/itemyellow_on.gif;showmenu=AboutUs;text=About Us;");
aI("align=center;bgimage=/menuimages/itemblue.gif;overbgimage=/menuimages/itemyellow_on.gif;showmenu=PickUpNGo;text=PickUp -n- Go;");
aI("align=center;bgimage=/menuimages/itemblue.gif;overbgimage=/menuimages/itemyellow_on.gif;showmenu=ContactUs;text=Contact Us;");
}

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

Re: word wrap in menu

Post by Ruth »

Hi,

Yes, you have it in the wrong place. The menu has properties that belong to different areas. Below my name are links to 3 areas, style, menu and item properties. So, if the property is a menu property, it goes in the menu, like top, left, etc. Style properties go into the style and will apply to all menus and their items that use that style, item properties are placed directly in the aI string for the item. If you cross reference the lists you'll see that some properties can go in all areas, some in one and some in two.

Nowrap is a style or item property, not a menu property.

Ruth
Post Reply