Results 1 to 6 of 6

Thread: All Levels Menu question

  1. #1
    Join Date
    Sep 2008
    Location
    Indianapolis, IN
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default All Levels Menu question

    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/dynamicindex.../generator.htm

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Well, you can disable the arrows by changing this setting inside the .js file:

    Code:
    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).
    DD Admin

  3. #3
    Join Date
    Sep 2008
    Location
    Indianapolis, IN
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.
    DD Admin

  5. #5
    Join Date
    Sep 2008
    Location
    Indianapolis, IN
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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.

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •