I have been playing around with the css in simplemenu.css but I have not figured out how to center the menu near the top instead of the left default. Any ideas?

Thanks

CommentFileSizeAuthor
#4 9-19-2012 8-57-40 PM.png3.08 KBJohnnyW

Comments

irishgringo’s picture

Version: 5.x-5.0 » 6.x-1.x-dev
Priority: Normal » Critical

I am working onthe same problem... perhaps someone could comment please

zroger’s picture

Priority: Critical » Normal
Status: Active » Closed (won't fix)

The way to change the positioning is to position an element in the template, then target that element, rather than body, in the simplemenu settings.

ArthurC’s picture

Would you please show us an example of what you mean?

Is the change to be made in simplemenu.css?

JohnnyW’s picture

Title: Centering Menu » Answer ;)
StatusFileSize
new3.08 KB

I am considering using css on original.css line 2 in module:

simplemenu-block {
height: 21px;
/* I added below */
display: table;
margin: 0 auto;
}

For simple black setup, then use the simpleblack.css on line 2 I believe:

.simplemenu-block {
height: 28px;
_margin-bottom: -20px;

/* I added below */
display: table;
margin: 0 auto;
}

AlexisWilke’s picture

Title: Answer ;) » Centering Menu

Nonnie,

You cannot change the issue title unless you can make it better.

Thank you for sharing your solution.
Alexis

See also #273254: center simplemenu on the web site...

JohnnyW’s picture

OOOOoooo

Sorry, I thought that was the title to my posting, and not the posting in general.

Nonnie

michael_lessard_micles.biz’s picture

Greetings,

I am adding a comment to support the notion that the module should offer the options "Align the menus left/center/right" and possibly also the "Align from right" which reverses the menu order (i.e. if you use 'float right' in CSS, the menu suddenly becomes readable right to left oddly enough).

At worse, the CSS options for this should be easily visible and understandable in the simplemenu.css by "commenting out" the optional alignments for the menu.

Your module is quite nice on many levels and offers many options, but the alignment option is a basic one I think you should not overlook. I chose the option Fixed at the top (so the menu stays visible at all times), so therefore it is not obvious, I find, to find a CSS setting to align the menu center or right.

( I of course have not changed the Issue settings, such as "closed (won't fix)" :) )

AlexisWilke’s picture

Hi Michael,

I'm afraid I'm not up to adding new features to this module (Especially 6.x). The solution is in post #4 which should be enough to get people going... Although I know this issue is hidden by default! 8-P

Thank you.
Alexis