Is there any way I can insert a line break into a menu choice to make the menu a smaller width?
Here is the website that I am building the menu for...
http://www.genetics-gsa.org/genetics/g- ... /index.htm
Thanks
need line break in menu choices
-
- Advanced
- Posts: 13
- Joined: Tue Jun 27, 2006 7:53 pm
- Location: Maryland
Hi,
You can set the menuwidth="100%"; and then the itemwidth="100%"; that will make the menu and items span no farther than the layout is. However, you will need to redo the gsamenu.gif image since the text now will wrap and that will expand the height of the menu and that background will now repeat down.
Your other option would be to insert linebreaks manually, however that's not really good since at different resolutions it would not look right, i.e. say someone has 1600xwhatever. Now your items would have this line break in them and the text would be on two lines and the menu would be less wide than the layout.
Ruth
You can set the menuwidth="100%"; and then the itemwidth="100%"; that will make the menu and items span no farther than the layout is. However, you will need to redo the gsamenu.gif image since the text now will wrap and that will expand the height of the menu and that background will now repeat down.
Your other option would be to insert linebreaks manually, however that's not really good since at different resolutions it would not look right, i.e. say someone has 1600xwhatever. Now your items would have this line break in them and the text would be on two lines and the menu would be less wide than the layout.
Ruth
-
- Advanced
- Posts: 13
- Joined: Tue Jun 27, 2006 7:53 pm
- Location: Maryland
I added these properties to the menu file, and it is acting the same....
Code: Select all
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
position="relative";
orientation="horizontal";
menualign="left";
menuwidth="100%";
itemwidth="100%";
style=menuStyle;
aI("showmenu=/Membership;text=Directory/Membership;");
aI("showmenu=Publications;text=Publications;");
aI("showmenu=Model Organism Information;text=Model Organism Informations;");
aI("showmenu=Education;text=Education;");
aI("showmenu=Public Policy;text=Public Policy;");
aI("showmenu=Careers;text=Careers;");
aI("showmenu=Awards;text=Awards;");
aI("showmenu=Members in News;text=Members in News;");
aI("showmenu=About Us;text=About Us;");
}
Hi,
When I download the page I get a file called menu_selections.js and in that file the code is
So, did you upload the new file because I'm still getting the old one.
Ruth
When I download the page I get a file called menu_selections.js and in that file the code is
Code: Select all
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
position="relative";
orientation="horizontal";
menualign="left";
menuwidth="100px";
style=menuStyle;
Ruth
-
- Advanced
- Posts: 13
- Joined: Tue Jun 27, 2006 7:53 pm
- Location: Maryland
LOL, what in the world was I thinking.....Ruth wrote:Hi,
When I download the page I get a file called menu_selections.js and in that file the code is
So, did you upload the new file because I'm still getting the old one.Code: Select all
with(milonic=new menuname("Main Menu")){ alwaysvisible=1; position="relative"; orientation="horizontal"; menualign="left"; menuwidth="100px"; style=menuStyle;
Ruth
It works now.
Thanks Ruth!