Skip to main content
Known Participant
November 28, 2009
Question

PVII Menubar Magic - Centered Menus

  • November 28, 2009
  • 2 replies
  • 1691 views

I hope I'm posting under the right category. I've been to the P7 website and also done a Google search for this with not much luck.

I've been using Project VII Extensions for a while now. I like using them but always come up with the same problem when using a horizontal menu. They want to always be left justified. I've tried everything to get them to center but no luck. The closest I've come is by assigning a percentage to the left and right but would prefer to be able to simply center my menus.

I've tried altering the CSS, inserting the menu in a table cell that is set up to center, and even coding the page to make them center, but they always go to the left.

Is there something obvious I am missing? 🙂

Linda

This topic has been closed for replies.

2 replies

November 28, 2009

Hi Linda,

I work with the PVII menu's as well but noticed this same issue when working with a spry menu once. I couldn't get it centered eighter. The best thing i could acheave was to get them centered on top of each other (vertically) when I altered the "float" rule (if i remember it correctly) But I obviously didn't want them to be vertically on top of each other when working on a horrizontal menu!

Does someone know how to center a javascript menu with css?

LRK 2Author
Known Participant
November 29, 2009

peet johnsonhw wrote:

Hi Linda,

I work with the PVII menu's as well but noticed this same issue when working with a spry menu once. I couldn't get it centered eighter. The best thing i could acheave was to get them centered on top of each other (vertically) when I altered the "float" rule (if i remember it correctly) But I obviously didn't want them to be vertically on top of each other when working on a horrizontal menu!

Does someone know how to center a javascript menu with css?

Thank you for responding Peet. I think you helped to frame the question better. I wonder if the answer lies within the javascript itself.

LRK 2Author
Known Participant
November 29, 2009

I wrote to Al Sparber about this. He wrote back to say Horizontal CSS lists are very simple for those who know CSS and can be centered if you assign a width to each menu item. Not sure he understood my fundamental question since this only centers each items and doesn't center the entire menu in the HTML page.

Am I just plain stupid, or is this simple request not possible? Or maybe a little of both? Don't answer that question.

LRK 2Author
Known Participant
November 28, 2009

Here is a link in case someone wants to check my code.

Link removed. Problem solved.