PDA

View Full Version : All Levels Menu question



smligget
01-23-2009, 07:20 PM
Here is my link to the menu that I am trying to get to work.

http://sarahliggett.com/menu.html

The menu works, but I was wondering if you could tell me how I could get the text to be centered and to not have the aarows?

I can't figure out how to do either one of these things. Hope you can help? Thanks!

http://dynamicdrive.com/dynamicindex1/ddlevelsmenu/generator.htm

ddadmin
01-24-2009, 07:47 AM
Well, you can disable the arrows by changing this setting inside the .js file:


arrowpointers:{
downarrow: ["ddlevelsfiles/arrow-down.gif", 11,7], //[path_to_down_arrow, arrowwidth, arrowheight]
rightarrow: ["ddlevelsfiles/arrow-right.gif", 12,12], //[path_to_right_arrow, arrowwidth, arrowheight]
showarrow: {toplevel: true, sublevel: true} //Show arrow images on top level items and sub level items, respectively?
},

As far as centering the menu text, do you mean center the entire top menu relative to the page? If so, the easiest way is just to pick a menu theme that does not use CSS floats, such as "Chrome Menu", "Shade Tabs", and a couple of others on the Menu Generator page (look at the corresponding description).

smligget
01-26-2009, 04:13 PM
I was wondering if you could tell me how I get this menu centered in the middle of the page. Thanks so much. Here is my link to the menu and then the css and js respectively is in the code for you to look at if needed.

http://sarahliggett.com/menu.html

ddadmin
01-27-2009, 05:08 AM
Please read my earlier response. In a nutshell, the easiest way is just to pick a menu theme that does not use CSS floats (ie: float: left), such as "Chrome Menu", "Shade Tabs", and a couple of others on the Menu Generator page (look at the corresponding description). With these menus, the process of centering the menu comes down to just setting text-align:center inside the CSS.

smligget
01-27-2009, 04:15 PM
I didn't mean the text itself. I meant to get in centered like in the middle of the page and having margin on the outside of the menu.

ddadmin
01-27-2009, 07:35 PM
Yep, that's what I meant too- centering the entire menu relative to the page. For example, if you preview "Shade Tabs" on the Generator page, notice how the tabs are centered on the screen. For the menu themes that support easy centering, setting text-align:center will do that.