0
Welcome Guest! Login
0 items Join Now

Center Gantry Main Menu

  • Center Gantry Main Menu

    Posted 12 years 2 months ago
    • Feel like this is a really silly question but can't find the answer anywhere. How do we center the gantry main menu? I don't want the individual menu items centered. I want the whole menu you center within the div I put it in.

      For example #rt-showcase .rt-container .menu-block

      I want the menu to center within that div. I tried
      {display: block; margin-left: auto; margin-right: auto;}

      but that didn't work. I'm able to margin-left but there's got to be a better to just center the menu within the div.

      Thanks.
  • Re: Center Gantry Main Menu

    Posted 12 years 2 months ago
    • I'm hoping you get a reply.. tried everything I can think of, still no solution
    • Shazdeh's Avatar
    • Shazdeh
    • Elite Rocketeer
    • Posts: 4984
    • Thanks: 29

    Re: Center Gantry Main Menu

    Posted 12 years 2 months ago
    • mcole's Avatar
    • mcole
    • Rocketeer
    • Posts: 60
    • Thanks: 0

    Re: Center Gantry Main Menu

    Posted 10 years 5 months ago
    • This worked for me on Plethora-

      Thank you!!!!!
  • Re: Center Gantry Main Menu

    Posted 10 years 1 month ago
    • thanks so much, brilliant

      for a newby (like me and others) there were a few other steps:
      create the custom css file as per
      www.gantry-framework.org/documentation/j...custom_stylesheet.md

      Paste in Shazdeh's code.
      if you have assigned the menu into a different module position.
      change "header" in each line to correspond to module position that you are using.
      so for me using Plethora and "maintop" position code reads:
      #rt-maintop . menu ... etc.

      In plethora this brings the menu to below the image, centered beautifully.

      thanks again.

Time to create page: 0.049 seconds